A little help with static methods...

I am having an issue with static methods.

I have created a class say named A. In A's header file I create a public static method named lets say get name. I also created a static vector of string names. IF you have not gathered yet, I am attempting to create a static vector and then a static method to return these names. My compiler however (Visual Studio 2012) is giving my an error. It is saying

"1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Duck.obj : error LNK2001: unresolved external symbol "private: static class std::vector<class A,class std::allocator<class A> > A::name" (?name@A@@0V?$vector@VA@@V?$allocator@VA@@@std@@@std@@A)
1>D:\Dev\C++ Winter Break\Games\Practice\Debug\Practice.exe : fatal error LNK1120: 1 unresolved externals"

Any reason why this is happening?

Figured it out, gotta declare the bad boy in the .cpp/ Thanks for those who may of read
Topic archived. No new replies allowed.