Themuppeteer
Programmer
Hello guys,
I'm trying to write a network client in VC6.0.
I'm using WSADATA, and socket, and I did put mpr.lib wsock32.lib in the linker dialog under object libraries/modules.
I'm gonna use an array of sockets in my program.
Thats why I made my WSADATA var static in my wrapper class for socket, because I (think I) want to initialize it only once (is this correct?) for the complete program.
I get this error:
Communication.obj : error LNK2001: unresolved external symbol "private: static struct WSAData Communication::wsaDat" (?wsaDat@Communication@@0UWSAData@@A)
Communication.obj : error LNK2001: unresolved external symbol "private: static int Communication::wsaInitialized" (?wsaInitialized@Communication@@0HA)
Debug/Upgrade.exe : fatal error LNK1120: 2 unresolved externals
when I don't set them to static, it works fine.
Any clues ?
thnx!
Greetz,
NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)
"Those who say they understand chess, understand nothing"
-- Robert HUBNER
I'm trying to write a network client in VC6.0.
I'm using WSADATA, and socket, and I did put mpr.lib wsock32.lib in the linker dialog under object libraries/modules.
I'm gonna use an array of sockets in my program.
Thats why I made my WSADATA var static in my wrapper class for socket, because I (think I) want to initialize it only once (is this correct?) for the complete program.
I get this error:
Communication.obj : error LNK2001: unresolved external symbol "private: static struct WSAData Communication::wsaDat" (?wsaDat@Communication@@0UWSAData@@A)
Communication.obj : error LNK2001: unresolved external symbol "private: static int Communication::wsaInitialized" (?wsaInitialized@Communication@@0HA)
Debug/Upgrade.exe : fatal error LNK1120: 2 unresolved externals
when I don't set them to static, it works fine.
Any clues ?
thnx!
Greetz,
NOSPAM_themuppeteer@hotmail.com (for mails, remove the NOSPAM_)
"Those who say they understand chess, understand nothing"
-- Robert HUBNER