Latest Zandronum compiling

General help and assistance forum.
Post Reply
Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

Latest Zandronum compiling

#1

Post by Watermelon » Mon Feb 04, 2013 8:45 pm

I can compile Zandronum 1.0 but not 1.1.
I pulled this from the latest one (today)

Can anyone see what I'm doing wrong?

Code: Select all

1>------ Build started: Project: GeoIP, Configuration: Debug DLL Win32 ------
1>Linking...
2>------ Build started: Project: wadsrc_st, Configuration: Debug Win32 ------
2>Checking skulltag_actors.pk3...
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__WSASetLastError@4 referenced in function _WspiapiGetNameInfo@28
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__inet_ntoa@4 referenced in function _WspiapiLegacyGetAddrInfo@16
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__htonl@4 referenced in function _WspiapiLegacyGetAddrInfo@16
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__getservbyname@8 referenced in function _WspiapiLegacyGetAddrInfo@16
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function _WspiapiLegacyGetAddrInfo@16
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__inet_addr@4 referenced in function _WspiapiParseV4Address@8
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__WSAGetLastError@0 referenced in function _WspiapiQueryDNS@24
2>        1 file(s) copied.
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__gethostbyname@4 referenced in function _WspiapiQueryDNS@24
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__gethostbyaddr@12 referenced in function _WspiapiLegacyGetNameInfo@28
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__getservbyport@8 referenced in function _WspiapiLegacyGetNameInfo@28
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__ntohs@4 referenced in function _WspiapiLegacyGetNameInfo@28
1>GeoIP.obj : error LNK2019: unresolved external symbol __imp__ntohl@4 referenced in function __GeoIP_lookupaddress
2>Build log was saved at "file://c:\Users\me\Desktop\LatestZandro\zandronum\wadsrc_st\Debug\BuildLog.htm"
1>C:\Users\me\Desktop\LatestZandro\zandronum\Debug DLL\GeoIP.dll : fatal error LNK1120: 12 unresolved externals
2>wadsrc_st - 0 error(s), 0 warning(s)
1>Build log was saved at "file://c:\Users\me\Desktop\LatestZandro\zandronum\GeoIP\Debug DLL\BuildLog.htm"
3>------ Build started: Project: wadsrc, Configuration: Debug Win32 ------
1>GeoIP - 13 error(s), 0 warning(s)
3>Checking zandronum.pk3...
4>------ Build started: Project: zandronum, Configuration: Debug Win32 ------
3>        1 file(s) copied.
3>Build log was saved at "file://c:\Users\me\Desktop\LatestZandro\zandronum\wadsrc\Debug\BuildLog.htm"
3>wadsrc - 0 error(s), 0 warning(s)
4>Performing Pre-Build Event...
4>src/svnrevision.h is up to date at revision 130202-1026M.
4>Compiling...
4>maprotation.cpp
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(488) : error C2059: syntax error : 'constant'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(488) : error C2733: second C linkage of overloaded function '_dupenv_s_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(488) : see declaration of '_dupenv_s_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(592) : error C2059: syntax error : 'constant'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(592) : error C2733: second C linkage of overloaded function '_calloc_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(592) : see declaration of '_calloc_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(593) : error C2059: syntax error : 'constant'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(593) : error C2733: second C linkage of overloaded function '_free_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(593) : see declaration of '_free_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(594) : error C2059: syntax error : 'constant'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(594) : error C2733: second C linkage of overloaded function '_malloc_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(594) : see declaration of '_malloc_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(595) : error C2059: syntax error : 'constant'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(595) : error C2733: second C linkage of overloaded function '_realloc_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(595) : see declaration of '_realloc_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(596) : error C2059: syntax error : 'constant'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(596) : error C2733: second C linkage of overloaded function '_recalloc_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(596) : see declaration of '_recalloc_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(598) : error C2059: syntax error : 'string'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(598) : error C2733: second C linkage of overloaded function '_aligned_malloc_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(598) : see declaration of '_aligned_malloc_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(599) : error C2059: syntax error : 'string'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(599) : error C2733: second C linkage of overloaded function '_aligned_offset_malloc_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(599) : see declaration of '_aligned_offset_malloc_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(600) : error C2059: syntax error : 'string'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(600) : error C2733: second C linkage of overloaded function '_aligned_realloc_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(600) : see declaration of '_aligned_realloc_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(601) : error C2059: syntax error : 'string'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(601) : error C2733: second C linkage of overloaded function '_aligned_recalloc_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(601) : see declaration of '_aligned_recalloc_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(602) : error C2059: syntax error : 'string'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(602) : error C2733: second C linkage of overloaded function '_aligned_offset_realloc_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(602) : see declaration of '_aligned_offset_realloc_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(603) : error C2059: syntax error : 'string'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(603) : error C2733: second C linkage of overloaded function '_aligned_offset_recalloc_dbg' not allowed
4>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdlib.h(603) : see declaration of '_aligned_offset_recalloc_dbg'
4>c:\program files (x86)\microsoft visual studio 8\vc\include\cstdlib(22) : error C2039: 'calloc' : is not a member of '`global namespace''
4>c:\program files (x86)\microsoft visual studio 8\vc\include\cstdlib(22) : error C2873: 'calloc' : symbol cannot be used in a using-declaration
4>c:\program files (x86)\microsoft visual studio 8\vc\include\cstdlib(23) : error C2039: 'free' : is not a member of '`global namespace''
4>c:\program files (x86)\microsoft visual studio 8\vc\include\cstdlib(23) : error C2873: 'free' : symbol cannot be used in a using-declaration
4>c:\program files (x86)\microsoft visual studio 8\vc\include\cstdlib(24) : error C2039: 'malloc' : is not a member of '`global namespace''
4>c:\program files (x86)\microsoft visual studio 8\vc\include\cstdlib(24) : error C2873: 'malloc' : symbol cannot be used in a using-declaration
4>c:\program files (x86)\microsoft visual studio 8\vc\include\cstdlib(26) : error C2039: 'realloc' : is not a member of '`global namespace''
4>c:\program files (x86)\microsoft visual studio 8\vc\include\cstdlib(26) : error C2873: 'realloc' : symbol cannot be used in a using-declaration
4>c:\users\me\desktop\latestzandro\zandronum\src\maprotation.cpp(80) : warning C4267: 'return' : conversion from 'size_t' to 'ULONG', possible loss of data
4>c:\users\me\desktop\latestzandro\zandronum\src\maprotation.cpp(118) : warning C4267: '=' : conversion from 'size_t' to 'ULONG', possible loss of data
4>c:\users\me\desktop\latestzandro\zandronum\src\maprotation.cpp(211) : warning C4244: '=' : conversion from '__w64 int' to 'int', possible loss of data
4>Build log was saved at "file://c:\Users\me\Desktop\LatestZandro\zandronum\Debug\BuildLog.htm"
4>zandronum - 32 error(s), 3 warning(s)
========== Build: 2 succeeded, 2 failed, 17 up-to-date, 0 skipped ==========
Last edited by Watermelon on Mon Feb 04, 2013 8:46 pm, edited 1 time in total.

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: Latest Zandronum compiling

#2

Post by Torr Samaho » Wed Feb 06, 2013 5:43 am

Which VC++ version and which Windows SDK version are you using? Under Windows I only tested GeoIP with VC++ 2005 and SDK v7.0A. Possibly you need to link some more libs if you use different versions.

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

RE: Latest Zandronum compiling

#3

Post by Watermelon » Wed Feb 06, 2013 4:14 pm

Found the problem

Apparently there was some outdated GeoIP (v.1.4.8) in one of my lib folders when I was originally trying to get GeoLib to work which was causing the problems.


Though this thread is solved I'm just going to document what I used as a benchmark for what works:
Currently using:
VC++ 2005

Executable:
nasm-2.00
tortoiseHG
SlikSVN

Include:
DXSDK_DIR include
FMod4.24.16 api inc
Microsoft SDK v7.0 include and gl

Library:
DXSDK lib x86
Microsoft SDK v7.0 lib
Logitech Gaming Software LCDSDK lib x86
FMod 4.24.16 api lib
Last edited by Watermelon on Wed Feb 06, 2013 4:14 pm, edited 1 time in total.

Post Reply