[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS Feature Branch - Windows Build Broken - lib/xgethostname.c & WinSock
From: |
Conrad T. Pino |
Subject: |
CVS Feature Branch - Windows Build Broken - lib/xgethostname.c & WinSock |
Date: |
Mon, 22 Nov 2004 09:22:02 -0800 |
File "lib/xgethostname.c" calls function "gethostname" which appears
not to have a prototype.
If "#include <winsock.h>" is added to "lib/xgethostname.c" then the
issue goes away.
What is the correct fix?
--------------------Configuration: libcvs - Win32 Debug--------------------
Compiling...
xgethostname.c
H:\Conrad\Projects\cvs-1.12\lib\xgethostname.c(67) : warning C4013:
'gethostname' undefined; assuming extern returning int
Creating library...
--------------------Configuration: libdiff - Win32 Debug--------------------
Creating library...
--------------------Configuration: cvsnt - Win32 Debug--------------------
Linking...
libdiff.lib(xgethostname.obj) : error LNK2001: unresolved external symbol
_gethostname
.\WinDebug\cvs.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
cvs.exe - 2 error(s), 94 warning(s)
- CVS Feature Branch - Windows Build Broken - lib/xgethostname.c & WinSock,
Conrad T. Pino <=