News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

MSVCT7.0: trying to use winsock2, LNK2019:unresolved external symbols

Started by maartenl, April 23, 2006, 02:17:34 PM

Previous topic - Next topic

maartenl

Hello,

Busy with Codeblocks and works fine, except I'm trying a client-socket program with Winsock2. I'm getting 10 unresolved external symbols.

error LNK2019: unresolved external symbol __imp__send@16 referenced in function _main

As far as I can tell I've got all necessary files in necessary directories:
inc: winsock2.h
lib: WS2_32.Lib
DLL: windows/system32/ws2_32.dll

I'm guessing it cannot find the ws2_32.dll file? Where in Codeblocks should I tell codeblocks to look for it?

Regards,

Liu

I think that cl need a corresponding .lib file,
but I'm not able to set my include/lib directory,
and not able to set specific .lib file which cl link it.

PChris

Which compiler do you use?

You should tell the linker, that it should link the*.lib file

Liu

Thanks! I found it, ambiguous rule.
compiler directory == include directory and linker directory == lib directory