Problem compiling revision 11900 with VC .NET 2003

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

Problem compiling revision 11900 with VC .NET 2003

Post by shenle »

Here is the relevant section of the build log:

Build Log


------- Build started: Project: vegastrike, Configuration: Release|Win32 -------

Command Lines


Creating temporary file "d:\vegastrike\svn\vega-vc7\vegastrike_Win32_Release\RSP000005.rsp" with contents
[
/O2 /Ot /G7 /GA /I "include\\" /I "include\python\\" /I ".\\" /I "..\vegastrike\boost\1_33\\" /I "..\vegastrike\src\\" /I "..\vegastrike\vc98\\" /I "..\vegastrike\src\cmd\collide2" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "HAVE_AL" /D "HAVE_SDL" /D "YY_ALWAYS_INTERACTIVE" /D "SDL_WINDOWING" /D "HAVE_OGG" /D "HAVE_BOOST" /D "HAVE_PYTHON" /D "JPEG_SUPPORT" /D "USE_BOOST_131" /D "BOOST_PYTHON_STATIC_LIB" /D "OPCODE_COLLIDER" /D "_MBCS" /FD /EHsc /MD /arch:SSE2 /GR /YX"stdafx.h" /Fp".\vegastrike_Win32_Release/vegastrikeRVC7.pch" /Fo".\vegastrike_Win32_Release/" /Fd".\vegastrike_Win32_Release/" /FR".\vegastrike_Win32_Release/" /c /Zi /Zm500
"\vegastrike\svn\vegastrike\src\cmd\collide2\CSopcodecollider.cpp"
"\vegastrike\svn\vegastrike\src\cmd\cont_terrain.cpp"
]
Creating command line "cl.exe @"d:\vegastrike\svn\vega-vc7\vegastrike_Win32_Release\RSP000005.rsp" /nologo"
Creating temporary file "d:\vegastrike\svn\vega-vc7\vegastrike_Win32_Release\RSP000006.rsp" with contents
[
/O2 /Ot /G7 /GA /I "include\\" /I "include\python\\" /I ".\\" /I "..\vegastrike\boost\1_33\\" /I "..\vegastrike\src\\" /I "..\vegastrike\vc98\\" /I "..\vegastrike\src\cmd\collide2" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "HAVE_AL" /D "HAVE_SDL" /D "YY_ALWAYS_INTERACTIVE" /D "SDL_WINDOWING" /D "HAVE_OGG" /D "HAVE_BOOST" /D "HAVE_PYTHON" /D "JPEG_SUPPORT" /D "USE_BOOST_131" /D "BOOST_PYTHON_STATIC_LIB" /D "OPCODE_COLLIDER" /D "_MBCS" /FD /EHsc /MD /arch:SSE2 /GR /YX"stdafx.h" /Fp".\vegastrike_Win32_Release/vegastrikeRVC7.pch" /Fo".\vegastrike_Win32_Release/" /Fd".\vegastrike_Win32_Release/" /FR".\vegastrike_Win32_Release/" /c /Zi /Zm700 /Zm500
"\vegastrike\svn\vegastrike\src\python\unit_exports1.cpp"
]
Creating command line "cl.exe @"d:\vegastrike\svn\vega-vc7\vegastrike_Win32_Release\RSP000006.rsp" /nologo"

Output Window


Compiling...
CSopcodecollider.cpp
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(217) : error C2143: syntax error : missing ';' before '*'
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(217) : error C2501: '_pwctype' : missing storage-class or type specifiers
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(261) : error C2061: syntax error : identifier 'wctype_t'
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(264) : error C2061: syntax error : identifier 'wctype_t'
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(364) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(365) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(366) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(367) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(368) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(369) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(370) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(371) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(373) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(375) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(376) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ctype.h(67) : error C2143: syntax error : missing ';' before '*'
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ctype.h(67) : error C2501: '_pwctype' : missing storage-class or type specifiers
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ctype.h(67) : error C2086: 'int *_pwctype' : redefinition
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(217) : see declaration of '_pwctype'
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ostream(604) : fatal error C1903: unable to recover from previous error(s); stopping compilation
cont_terrain.cpp
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(217) : error C2143: syntax error : missing ';' before '*'
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(217) : error C2501: '_pwctype' : missing storage-class or type specifiers
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(261) : error C2061: syntax error : identifier 'wctype_t'
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(264) : error C2061: syntax error : identifier 'wctype_t'
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(364) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(365) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(366) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(367) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(368) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(369) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(370) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(371) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(373) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(375) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(376) : error C2660: 'iswctype' : function does not take 2 arguments
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ctype.h(67) : error C2143: syntax error : missing ';' before '*'
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ctype.h(67) : error C2501: '_pwctype' : missing storage-class or type specifiers
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ctype.h(67) : error C2086: 'int *_pwctype' : redefinition
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\wchar.h(217) : see declaration of '_pwctype'
E:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ostream(604) : fatal error C1903: unable to recover from previous error(s); stopping compilation

Results


Build log was saved at "file://d:\vegastrike\svn\vega-vc7\vegastrike_Win32_Release\BuildLog.htm"
vegastrike - 38 error(s), 0 warning(s)
safemode
Developer
Developer
Posts: 2150
Joined: Mon Apr 23, 2007 1:17 am
Location: Pennsylvania
Contact:

Post by safemode »

in linux we have a config.h file that has various defines set dependent on the types of headers on the system. Like std headers vs regular old style headers. one of these is wchar.h and wtype.h etc. These are detected by ./configure and the appropriate define is set in config.h when they're found.

You're not defining those things in your dev environment. Basically, whoever set up your build forgot to include the define being looked for in opcodetypes.h for wchar.h HAVE_WCHAR_H or such. There are others in that file too.
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

Try updating to 11902 and see if that fixes the problem.
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

Post by shenle »

Works now.
Post Reply