Howdy. I’ve been given a bunch of code from someone else and I’ve never been able to get it to link. I guess that means that it can compile okay, but when it comes time to linking, no dice.
I’ve used a whole bunch of different compilers, most notably g++ (through Cygwin) and Visual Studio 6.0, both on Windows 2000. When I try to link, Visual Studio spits out the error messages at the bottom of this posting.
I did a text search for _fontLoad on my hard drive, and it turned up in glTexFont.lib. Can Visual Studio use this file? I tried putting the parent directory of glTexFont.lib in Tools --> Options --> Directories --> Library Files, but that still didn’t make any difference. I still get the same output below.
Any idea of what I’m doing wrong? Please help! Thanks very much!
--------------------Configuration: Client1 - Win32 Debug--------------------
Linking…
display.obj : error LNK2001: unresolved external symbol _fontLoad
graphics.obj : error LNK2001: unresolved external symbol _fontLoad
pics.obj : error LNK2001: unresolved external symbol _fontDrawString
pics.obj : error LNK2001: unresolved external symbol _fontShadow
pics.obj : error LNK2001: unresolved external symbol _fontShadowColorp
pics.obj : error LNK2001: unresolved external symbol _fontColorp
pics.obj : error LNK2001: unresolved external symbol _fontSize
user.obj : error LNK2001: unresolved external symbol __imp__connect@12
user.obj : error LNK2001: unresolved external symbol __imp__inet_addr@4
user.obj : error LNK2001: unresolved external symbol __imp__htons@4
user.obj : error LNK2001: unresolved external symbol __imp__socket@12
user.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8
user.obj : error LNK2001: unresolved external symbol __imp__recv@16
user.obj : error LNK2001: unresolved external symbol __imp__send@16
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/ORFClient1.exe : fatal error LNK1120: 14 unresolved externals
Error executing link.exe.
ORFClient1.exe - 16 error(s), 0 warning(s)