Menu

Unable to use call - connect() in Dev C++

yanivk
2011-11-09
2012-09-26
  • yanivk

    yanivk - 2011-11-09

    Hi

    Very new to socket programming and am using Bloodshed Dev C++ v4.9.9.2.

    I have linked both libws2_32.a and libwsock32.a in project options. Also
    calling winsock.h and WSAStartup() in the program.

    I am using calls socket(), bind(), connect(), listen(), accept() in my test
    program and I get a linker error only for connect(). ------ undefined
    reference to `Connect'.

    No other errors. Without the connect() call, the program compiles
    successfully.

    I am not able to figure out what I missed for connect().

    Thank you in advance.

     
  • Jim Pattee

    Jim Pattee - 2011-11-09

    Does `Connect' start with an upper case letter?

     
  • yanivk

    yanivk - 2011-11-10

    I completely overlooked that point. Connect starts with a lower case. So dumb
    of me. Thanks a lot !!

     

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.