compiler errors: win2k

This is a discussion on compiler errors: win2k within the C Programming forums, part of the General Programming Boards category; Hey I'm using lcc (latest version) on windows 2000. I am trying to compile regular tcpip code, which gets past ...

  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
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    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, 10:13 AM
  2. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 11:50 AM
  3. bloodshed compiler errors
    By nerore in forum C++ Programming
    Replies: 5
    Last Post: 04-17-2004, 03: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, 04:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21