Skip to main content
gamedev.net
๐Ÿ”’ Locked

static variable in an exported class

Started by Chaucer Jan 8, 2003 at 10:40 PM 0 replies 100+ views
Original Post
Chaucer
Chaucer
I''m creating a dll and exporting a class with static variables something like this: class __declspec(dllexport) MyClass{ public: MyClass(); ~MyClass(); static int test; }; The problem is that I get a linker error when I try to build the exe that uses the dll stating unresolved external symbol on the static variable. Any ideas?
Thanks!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.