Menu

#114 compile error VS2013 - FGfdmSocket.cpp - with workaround

None
closed
nobody
None
1
2017-02-28
2015-03-21
Tom Sky
No

Hi,
i got an compile error like this:

E:\JSBSim\jsbsim-code\src\input_output\FGfdmSocket.cpp(327): error C2065: 'socklen_t' : undeclared identifier
1>E:\JSBSim\jsbsim-code\src\input_output\FGfdmSocket.cpp(327): error C2146: syntax error : missing ';' before identifier 'fromlen'
1>E:\JSBSim\jsbsim-code\src\input_output\FGfdmSocket.cpp(327): error C2065: 'fromlen' : undeclared identifier
1>E:\JSBSim\jsbsim-code\src\input_output\FGfdmSocket.cpp(328): error C2065: 'fromlen' : undeclared identifier

with the MASTER-branch.

changes in FGfdmSocket.h solves the error:

#include <winsock.h></winsock.h>

become to:

#include <ws2tcpip.h>
#include <winsock2.h></winsock2.h></ws2tcpip.h>

now there are only many conversion warnings.

t.

Discussion

  • Bertrand Coconnier

    A fix has been committed in the CVS repository.
    Could you please test it and tell us if that fixes the problem ?
    Thanks.

     
  • Tom Sky

    Tom Sky - 2015-03-22

    Hi,
    ok i checked out the cvs version with your changes. This compiles out of the box.
    Thanks for that.
    Problem solved.
    t.

     
  • Bertrand Coconnier

    • status: open --> closed
    • Group: -->
     

Log in to post a comment.

Auth0 Logo