Can't build TightVNC Server 1.2.9 - linker error

"Andrey" leyandrew "at" mail.ru
Thu Jan 8 03:43:01 2004


Hello,
I am trying to compile TightVNC 1.2.9 in MSVC++ 6.0
The project file winvnc.dsp didn't open(MSVC couldn't recognize the project file), so i've made an empty project and added all *.c, *.cpp and *.h and libraries:
libjpeg.lib, 
zlib.lib and 
omnithread.lib

It compiles fine but i get link errors:


//================================================================
LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
vncMenu.obj : error LNK2001: unresolved external symbol __imp__gethostbyname "at" 4
VSocket.obj : error LNK2001: unresolved external symbol __imp__gethostbyname "at" 4
vncMenu.obj : error LNK2001: unresolved external symbol __imp__gethostname "at" 8
vncMenu.obj : error LNK2001: unresolved external symbol __imp__inet_ntoa "at" 4
VSocket.obj : error LNK2001: unresolved external symbol __imp__inet_ntoa "at" 4
VSocket.obj : error LNK2001: unresolved external symbol __imp__WSAStartup "at" 8
VSocket.obj : error LNK2001: unresolved external symbol __imp__WSACleanup "at" 0
VSocket.obj : error LNK2001: unresolved external symbol __imp__setsockopt "at" 20
VSocket.obj : error LNK2001: unresolved external symbol __imp__socket "at" 12
VSocket.obj : error LNK2001: unresolved external symbol __imp__closesocket "at" 4
VSocket.obj : error LNK2001: unresolved external symbol __imp__shutdown "at" 8
VSocket.obj : error LNK2001: unresolved external symbol __imp__bind "at" 12
VSocket.obj : error LNK2001: unresolved external symbol __imp__htonl "at" 4
VSocket.obj : error LNK2001: unresolved external symbol __imp__htons "at" 4
VSocket.obj : error LNK2001: unresolved external symbol __imp__ioctlsocket "at" 12
VSocket.obj : error LNK2001: unresolved external symbol __imp__connect "at" 12
VSocket.obj : error LNK2001: unresolved external symbol __imp__inet_addr "at" 4
VSocket.obj : error LNK2001: unresolved external symbol __imp__listen "at" 8
VSocket.obj : error LNK2001: unresolved external symbol __imp__accept "at" 12
VSocket.obj : error LNK2001: unresolved external symbol __imp__getpeername "at" 12
VSocket.obj : error LNK2001: unresolved external symbol __imp__getsockname "at" 12
VSocket.obj : error LNK2001: unresolved external symbol __imp__WSAGetLastError "at" 0
VSocket.obj : error LNK2001: unresolved external symbol __imp__send "at" 16
VSocket.obj : error LNK2001: unresolved external symbol ___WSAFDIsSet "at" 8
VSocket.obj : error LNK2001: unresolved external symbol __imp__select "at" 20
VSocket.obj : error LNK2001: unresolved external symbol __imp__recv "at" 16
MSVCRTD.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
winvnc.exe : fatal error LNK1120: 25 unresolved externals
Error executing link.exe.

winvnc.exe - 28 error(s), 10 warning(s)
//================================================================

And i can't figure out what the problem is, what i didn't include...

Any ideas would be highly appreciated!

Thank you in advance,
Andrey