Menu

Socket.h

2002-08-05
2012-09-26
  • Nobody/Anonymous

    Does anybody know why i can't use sys/sockets.h in Dev-C++ (couldn't find such file in the library)???

     
    • Nobody/Anonymous

      Just use winsock.h. There seems to be no wrapper for the unix-type-functions. But be careful some of the functions are a little bit different than the unix-ones. If you do so, dont forget to add the corresponding library when linking. Just add  -lws2_32 do the linker-options in the project-options-tab of your project.  ws-2_32 seems to stand for the new 32-bit Winsock2-Library. There is also a library named wsock32, but i did not try this one by now.   Always keep in mind: To call a windows-dll you need the linker-information (means a linker-library) for it. Just look into the lib - directory (usually the name is very similar to the windows-dll-name).

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.