c++ - unresolved external symbol althought it's already defined -


i've got following error althought have public static member called mymember in myclass class!

error lnk2001: unresolved external symbol "public: static float myclass::mymember" (?mymember@myclass@@2ma)

note when double click on error not take me line in code!

the code:

class myclass {     public:        static float mymember; } 

any idea?

you declare mymember, define in .cpp corresponding (presumed) .h containing class:

float myclass::mymember; 

Comments