TMap::Add() causing crash?

I have a class:

class ALPHA_API BigDataNet
{
public:
    static TMap<int32, BigDataRPC*> BigDataRPCMap;
    static void MapBigDataRPC(int32 key, BigDataRPC* rpc);
}

And in my implimentation(.cpp) file:

void BigDataNet::MapBigDataRPC(int32 key, BigDataRPC* rpc)
{
	BigDataNet::BigDataRPCMap.Add(key, rpc);
}

For some reason, BigDataNet::BigDataRPCMap.Add(key, rpc); is causing an unresolved externals exception. If I comment it out, it builds fine. I’m not really sure what I am missing though.

Here’s some log info:

**Error 1 error LNK2001: unresolved external symbol "public: static class TMap<int,class BigDataRPC ,class FDefaultSetAllocator,struct TDefaultMapKeyFuncs<int,class BigDataRPC ,0> > BigDataNet::BigDataRPCMap" (?BigDataRPCMap@BigDataNet@@2V?$TMap@HPEAVBigDataRPC@@VFDefaultSetAllocator@@anonymous_user_15ea635e?$TDefaultMapKeyFuncs@HPEAVBigDataRPC@@$0A@@@@@A)

Any help is much appreciated!

P.S. Please fix “Post A Question” and “Ask Your Question” buttons. If I accidently click the “Post A Question” button again, losing my question, I might end up punching babies.

BigDataRPCMap actually does describe what it’s meant to represent. It’s a map containing all the BigDataRPC objects. MapBigDataRPC is a function that maps a BigDataRPC object to the specified key.

interestingly enough, I simply forgot to initialize BigDataRPCMap. Though, I thought it wasn’t necessary. I just had to add this to the cpp file:

TMap<int32, BigDataRPC*> BigDataNet::BigDataRPCMap = TMap<int32, BigDataRPC*>();

I did try adding it to the bottom of the header file but it complained:

Error	2	error LNK1169: one or more multiply defined symbols found

Static class members must be defined in the .cpp file. Your solution is correct.