Thread: compiler errors: win2k

  1. #1
    Registered User crepincdotcom's Avatar
    Join Date
    Oct 2003
    Posts
    94

    Question compiler errors: win2k

    Hey

    I'm using lcc (latest version) on windows 2000. I am trying to compile regular tcpip code, which gets past the checker, but then I get this:

    Error x.c 208 undefined reference to _WSAStartup@8
    Error x.c 210 undefined reference to _WSAGetLastError@0
    Error x.c 215 undefined reference to _htons@4
    Error x.c 216 undefined reference to _inet_addr@4
    Error x.c 218 undefined reference to _socket@12
    Error x.c 223 undefined reference to _WSAConnect@28
    Error x.c 260 undefined reference to _send@16
    Error x.c 269 undefined reference to _recv@16

    It appears that the compiler doesn't understand these functions in winsock? Please help, (I'm somewhat newer to C)

    Thanks
    -Jack C
    jack {at} crepinc.com
    http://www.crepinc.com

  2. #2
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    Did you link to ws2_32.lib?

  3. #3
    Registered User crepincdotcom's Avatar
    Join Date
    Oct 2003
    Posts
    94
    Wow that was quick. Yes you were right thank you.

    But now (this is lcc specific, don't know if you know..) But it says that it created the exe, and none exists.
    -Jack C
    jack {at} crepinc.com
    http://www.crepinc.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 10:50 AM
  3. bloodshed compiler errors
    By nerore in forum C++ Programming
    Replies: 5
    Last Post: 04-17-2004, 02:37 PM
  4. How to resolve linking errors?
    By m712 in forum C++ Programming
    Replies: 3
    Last Post: 11-03-2002, 10:17 PM
  5. Compiler errors
    By BellosX in forum C Programming
    Replies: 2
    Last Post: 09-21-2001, 03:24 AM