#1
  1. Cast down
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    321
    Rep Power
    12

    VC .NET, multi file program


    Ok, I kind of fixed it, I have a lot of headers/source files, the only errors I get now are errors for every winsock function. I do include winsock2.h in a lot of the headers, but I have directives that don't allow me to keep including the same file (#ifndef..#endif..etc). Where can the problem be?

    C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinSock2.h(2068): error C2375: 'socket' : redefinition; different linkage

    C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinSock2.h(2466): error C2375: 'WSAAsyncGetHostByName' : redefinition; different linkage
    Last edited by movEAX_444; September 5th, 2003 at 05:47 PM.

IMN logo majestic logo threadwatch logo seochat tools logo