Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.
>>Compiling... >>genkey.c >>Linking... >>genkey.obj : error LNK2001: unresolved external symbol >>_gethostbyname at 4 >>genkey.obj : error LNK2001: unresolved external symbol _gethostname at 8 >>genkey.obj : error LNK2001: unresolved external symbol _WSAStartup at 8 >>..\WinRel\genkey.exe : fatal error LNK1120: 3 unresolved externals >>Error executing link.exe. >> >>cvs.exe - 4 error(s), 14 warning(s) >> >>Seems like something is missing... >> >>Note: I can build in VS.NET on the exact same sources. >> > > Works here... it might be down to service packs or something. You > don't need genkey usually anyway. Sounds like the winsock library is not getting linked in. You can solve it by adding "wsock32.lib" or "ws2_32.lib" to the list if import libraries; Alternatively, you can add #pragma comment(lib,"wsock32") somewhere in the source to get the same behaviour.