I tried executing a winsock2 app and it throws me this error saying "...\Include\winsock2.h:46: unbalanced `#endif'" .
Thanks
DaIn
I tried executing a winsock2 app and it throws me this error saying "...\Include\winsock2.h:46: unbalanced `#endif'" .
Thanks
DaIn
"I wish i could wish my wishs away"
"By indirections find directions out" -- William Shakespears
"Do what thou wilt shall be the whole of the law" -- Crowley "THE BEAST 666"
Mizra -> love = Death...
RDB(Rocks yooo)..
http://www.cbeginnersunited.com
Are you ready for the Trix ???
I used to use Dev-C++, but I am using MSVC++ 6.0. Anyhow, here is the fix to the problem. Open the "winsock2.h" file, and on the fourth line from the bottom it says:
ifdef __cplusplus
Change that to:
#ifdef __cplusplus
And that should fix the problem!
Thanks, I've been wondering about that for a while aslo. One thing I did see on the Dev board is that #include <winsock2.h> needs to be put before #include <windows.h>