Unable to build TightVnc - linker error

"Andrey" leyandrew "at" mail.ru
Thu Jan 8 05:49:00 2004


Well, the roblem seems to be resolved, i finally found how to compile original winvnc.dsp - it was in unix format and that's why MSVC didn't recognize it as project file.


-----Original Message-----
From: "Andrey" <leyandrew "at" mail.ru>
To: vnc-tight-list "at" lists.sourceforge.net
Date: Wed, 07 Jan 2004 22:52:40 -0500
Subject: Unable to build TightVnc - linker error

> 
> 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...
> 
> Also i don't really understand what those linker warnings about defaultlib mean.
> 
> Any ideas would be highly appreciated!
> 
> Thank you in advance,
> Andrey
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> ___________________________________________________________
> TightVNC mailing list, VNC-Tight-list "at" lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vnc-tight-list