Menu

#203 Fix Build issues (redefinition) in Win32

open
5
2004-10-30
2004-10-30
Anonymous
No

Due to problems, I believe, with the MS Libraries,
redefinition errors can occur.

I fixed this by swapping "#include <winsock2.h>"
and "#include <windows.h>" so that "#include
<winsock2.h>" is called first.

Otherwise Windows.h will include winsock.h which will
cause errors with winsock2.h

Discussion

  • David Sugar

    David Sugar - 2004-10-30

    Logged In: YES
    user_id=217

    This one is a very strange error. Appearently, from what we have found,
    is that the order in which windows.h and winsock2.h must be included is
    different in vs.net than in vs6! The solution that exists in the testing
    branch is to test the _MSC_VER and based on it change the include order,
    and this actually does work since then both the .dsp and the .vcproj files
    build. This led to the decision to also go ahead and build the vs.net dll's
    with ipv6 enabled, which is also part of the stable2/1.3 or later releases...

     
  • David Sugar

    David Sugar - 2004-10-30
    • labels: --> Win32 Target
    • assigned_to: nobody --> dyfet
     

Log in to post a comment.