Page 1 of 2

MSVC error

Posted: 12 Apr 2011, 16:03
by Ezio
i got some error when compiling.
Error 84 error C2084: function 'double hypot(double,double)' already has a body d:\warzone\lib\framework\math_ext.h 99 1 iniparser
Error 85 error C2084: function 'float hypotf(float,float)' already has a body d:\warzone\lib\framework\math_ext.h 105 1 iniparser
Error 86 error C2084: function 'double hypot(double,double)' already has a body d:\warzone\lib\framework\math_ext.h 99 1 exceptionhandler
Error 87 error C2084: function 'float hypotf(float,float)' already has a body d:\warzone\lib\framework\math_ext.h 105 1 exceptionhandler
i''m not sure if i forgot something since i followed everything from http://developer.wz2100.net/wiki/Compil ... ndows/MSVC

Re: MSVC error

Posted: 17 Apr 2011, 23:42
by Buginator
What compiler version ?

Re: MSVC error

Posted: 29 Apr 2011, 05:25
by Ezio
forgot to add it :P
i'm using VS 2010 service pack 1

Re: MSVC error

Posted: 03 May 2011, 05:19
by Buginator
Odd, works well here, with VS 2010. Can you give me the build logs ?

Re: MSVC error

Posted: 07 May 2011, 02:27
by Ezio
all i did just open vs2k8 file -> convert & backup-> build solution.
tell me if you need other files :)

Re: MSVC error

Posted: 07 May 2011, 03:45
by Buginator
Ezio wrote:all i did just open vs2k8 file -> convert & backup-> build solution.
tell me if you need other files :)
Use the native 2010 solution file please.

Re: MSVC error

Posted: 01 Jun 2011, 19:35
by running sand
Greetings,

currently i am trying to run the last svn trunk version under MS VC 2010. I read all tips but still stucking in strange issues. May anyone is able to kick me in the right direction. First of all, i am able to compile (with a lot of warnings) but the (release) result is stuttering. Not audio, but input, movement and animation (3 seconds play, 2 seconds pause, 3seconds play, 2seconds pause....). The debug version will not start due to "side-by-side" issues :hmm:

here a part of my build log for release:

Code: Select all

13>LINK : warning C4742: 'assertEnabled' has different alignment in 'D:\Programming\Warzone2100\src\astar.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4
13>LINK : warning C4743: 'assertEnabled' has different size in 'D:\Programming\Warzone2100\src\astar.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4 bytes
13>LINK : warning C4744: 'assertEnabled' has different type in 'D:\Programming\Warzone2100\src\astar.cpp' and 'D:\Programming\Warzone2100\src\action.c': 'unsigned char' and 'int'
13>LINK : warning C4742: 'assertEnabled' has different alignment in 'D:\Programming\Warzone2100\src\mapgrid.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4
13>LINK : warning C4743: 'assertEnabled' has different size in 'D:\Programming\Warzone2100\src\mapgrid.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4 bytes
13>LINK : warning C4744: 'assertEnabled' has different type in 'D:\Programming\Warzone2100\src\mapgrid.cpp' and 'D:\Programming\Warzone2100\src\action.c': 'unsigned char' and 'int'
13>LINK : warning C4742: 'enabled_debug' has different alignment in 'D:\Programming\Warzone2100\src\multibot.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4
13>LINK : warning C4742: 'assertEnabled' has different alignment in 'D:\Programming\Warzone2100\src\multibot.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4
13>LINK : warning C4743: 'assertEnabled' has different size in 'D:\Programming\Warzone2100\src\multibot.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4 bytes
13>LINK : warning C4744: 'assertEnabled' has different type in 'D:\Programming\Warzone2100\src\multibot.cpp' and 'D:\Programming\Warzone2100\src\action.c': 'unsigned char' and 'int'
13>LINK : warning C4742: 'assertEnabled' has different alignment in 'D:\Programming\Warzone2100\src\random.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4
13>LINK : warning C4743: 'assertEnabled' has different size in 'D:\Programming\Warzone2100\src\random.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4 bytes
13>LINK : warning C4744: 'assertEnabled' has different type in 'D:\Programming\Warzone2100\src\random.cpp' and 'D:\Programming\Warzone2100\src\action.c': 'unsigned char' and 'int'
13>LINK : warning C4742: 'assertEnabled' has different alignment in 'D:\Programming\Warzone2100\src\wavecast.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4
13>LINK : warning C4743: 'assertEnabled' has different size in 'D:\Programming\Warzone2100\src\wavecast.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4 bytes
13>LINK : warning C4744: 'assertEnabled' has different type in 'D:\Programming\Warzone2100\src\wavecast.cpp' and 'D:\Programming\Warzone2100\src\action.c': 'unsigned char' and 'int'
13>LINK : warning C4742: 'enabled_debug' has different alignment in 'D:\Programming\Warzone2100\lib\exceptionhandler\dumpinfo.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4
13>LINK : warning C4742: 'assertEnabled' has different alignment in 'D:\Programming\Warzone2100\lib\exceptionhandler\dumpinfo.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4
13>LINK : warning C4743: 'assertEnabled' has different size in 'D:\Programming\Warzone2100\lib\exceptionhandler\dumpinfo.cpp' and 'D:\Programming\Warzone2100\src\action.c': 1 and 4 bytes
13>LINK : warning C4744: 'assertEnabled' has different type in 'D:\Programming\Warzone2100\lib\exceptionhandler\dumpinfo.cpp' and 'D:\Programming\Warzone2100\src\action.c': 'unsigned char' and 'int'
13>LINK : warning C4742: 'enabled_debug' has different alignment in 'D:\Programming\Warzone2100\lib\netplay\nettypes.cpp' and 'D:\Programming\Warzone2100\lib\framework\debug.c': 1 and 4
13>LINK : warning C4742: 'assertEnabled' has different alignment in 'D:\Programming\Warzone2100\lib\netplay\nettypes.cpp' and 'D:\Programming\Warzone2100\lib\framework\debug.c': 1 and 4
13>LINK : warning C4743: 'assertEnabled' has different size in 'D:\Programming\Warzone2100\lib\netplay\nettypes.cpp' and 'D:\Programming\Warzone2100\lib\framework\debug.c': 1 and 4 bytes
13>LINK : warning C4744: 'assertEnabled' has different type in 'D:\Programming\Warzone2100\lib\netplay\nettypes.cpp' and 'D:\Programming\Warzone2100\lib\framework\debug.c': 'unsigned char' and 'int'
13>LINK : warning C4742: 'enabled_debug' has different alignment in 'D:\Programming\Warzone2100\lib\netplay\netsocket.cpp' and 'D:\Programming\Warzone2100\lib\framework\debug.c': 1 and 4
13>LINK : warning C4742: 'assertEnabled' has different alignment in 'D:\Programming\Warzone2100\lib\netplay\netsocket.cpp' and 'D:\Programming\Warzone2100\lib\framework\debug.c': 1 and 4
13>LINK : warning C4743: 'assertEnabled' has different size in 'D:\Programming\Warzone2100\lib\netplay\netsocket.cpp' and 'D:\Programming\Warzone2100\lib\framework\debug.c': 1 and 4 bytes
13>LINK : warning C4744: 'assertEnabled' has different type in 'D:\Programming\Warzone2100\lib\netplay\netsocket.cpp' and 'D:\Programming\Warzone2100\lib\framework\debug.c': 'unsigned char' and 'int'
13>LINK : warning C4742: 'assertEnabled' has different alignment in 'D:\Programming\Warzone2100\lib\netplay\netqueue.cpp' and 'D:\Programming\Warzone2100\lib\framework\debug.c': 1 and 4
13>LINK : warning C4743: 'assertEnabled' has different size in 'D:\Programming\Warzone2100\lib\netplay\netqueue.cpp' and 'D:\Programming\Warzone2100\lib\framework\debug.c': 1 and 4 bytes
13>LINK : warning C4744: 'assertEnabled' has different type in 'D:\Programming\Warzone2100\lib\netplay\netqueue.cpp' and 'D:\Programming\Warzone2100\lib\framework\debug.c': 'unsigned char' and 'int'
13>     Creating library D:\Programming\Warzone2100\win32\Release\Warzone2100.lib and object D:\Programming\Warzone2100\win32\Release\Warzone2100.exp
13>  Generating code
13>d:\programming\warzone2100\lib\ivis_opengl\glee.c(15966): warning C4748: /GS can not protect parameters and local variables from local buffer overrun because optimizations are disabled in function
13>  Finished generating code
13>libtheora_static.lib(apiwrapper.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(bitpack.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(decapiwrapper.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(decinfo.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(dequant.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(fragment.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(huffdec.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(info.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(internal.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(state.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(mmxfrag.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(mmxidct.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(mmxloopfilter.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(mmxstate.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(x86state.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(decode1.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(idct1.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>libtheora_static.lib(quant1.obj) : warning LNK4204: 'D:\Programming\Warzone2100\win32\Release\vc100.pdb' is missing debugging information for referencing module; linking object as if no debug info
13>  Warzone2100.vs2k8.vcxproj -> D:\Programming\Warzone2100\win32\Release\Warzone2100.exe
13>          1 Datei(en) kopiert.
========== Rebuild All: 13 succeeded, 0 failed, 0 skipped ==========
I use the following new libs:
libogg-1.2.2 static http://xiph.org/downloads/

/include/ogg
config_types.h.in
ogg.h
os_types.h

/lib
libogg_static_lib
/libd
libogg_static.lib
/data
-

libvorbis-1.3.2 static http://xiph.org/downloads/

/include/vorbis
codec.h
vorbisenc.h
vorbisfile.h
/lib
libvorbis_static.lib
libvorbisfile_static.lib
/libd
libvorbis_static.lib
libvorbisfile_static.lib
/data
-
I build them by myself. The rest i took from the msvc2010 devpkg i found here:
http://download.gna.org/warzone/develop ... runk/msvc/
Any Help would be highly appreciated

Re: MSVC error

Posted: 01 Jun 2011, 20:03
by running sand
Buginator wrote:
Ezio wrote:all i did just open vs2k8 file -> convert & backup-> build solution.
tell me if you need other files :)
Use the native 2010 solution file please.
It is not part of the current trunk, where do i find it?

Re: MSVC error

Posted: 02 Jun 2011, 00:51
by Goth Zagog-Thou
I should note that the nightly also has bad stuttering in the audio, like an overload is happening.

Re: MSVC error

Posted: 03 Jun 2011, 20:48
by lav_coyote25
Goth Zagog-Thou wrote:I should note that the nightly also has bad stuttering in the audio, like an overload is happening.

yeah!! whats up with that.... i noticed that that dos box - when stuff is happening, it streams by so darn fast i cant read it... again, whats up with that...?????????? :annoyed:

Re: MSVC error

Posted: 13 Jun 2011, 16:16
by Seismo
As you can see here http://developer.wz2100.net/ticket/2783 is a new development package for Visual Studio 2010. I was not able to upload the complete package due to size limitation is set to 5 MB (need 5.6).

Re: MSVC error

Posted: 14 Jun 2011, 02:33
by Buginator
Seismo wrote:As you can see here http://developer.wz2100.net/ticket/2783 is a new development package for Visual Studio 2010. I was not able to upload the complete package due to size limitation is set to 5 MB (need 5.6).
What was wrong with the "official" dev package ? http://developer.wz2100.net/ticket/2643
Yeah, it still is a work in progress, since I am moving/changing things around, but, for the most part, it should work 'as is'.

Re: MSVC error

Posted: 14 Jun 2011, 02:47
by Seismo
Buginator wrote:
Seismo wrote:As you can see here http://developer.wz2100.net/ticket/2783 is a new development package for Visual Studio 2010. I was not able to upload the complete package due to size limitation is set to 5 MB (need 5.6).
What was wrong with the "official" dev package ? http://developer.wz2100.net/ticket/2643
Yeah, it still is a work in progress, since I am moving/changing things around, but, for the most part, it should work 'as is'.
Ah ok, i tried that "official" package what you call "should work" - forget it. Sorry pal, it's far away from being usable. Mixed VS versions, too old libs, broken compile due to some worse lines of code. The package you have uploaded have missing .vcxproj files which are necessary for msvc2010.

Re: MSVC error

Posted: 14 Jun 2011, 02:55
by Buginator
Seismo wrote:
Buginator wrote:
Seismo wrote:As you can see here http://developer.wz2100.net/ticket/2783 is a new development package for Visual Studio 2010. I was not able to upload the complete package due to size limitation is set to 5 MB (need 5.6).
What was wrong with the "official" dev package ? http://developer.wz2100.net/ticket/2643
Yeah, it still is a work in progress, since I am moving/changing things around, but, for the most part, it should work 'as is'.
Ah ok, i tried that "official" package what you call "should work" - forget it. Sorry pal, it's far away from being usable. Mixed VS versions, too old libs, broken compile due to some worse lines of code. The package you have uploaded have missing .vcxproj files which are necessary for msvc2010.
O_o
Those were all made using VS2010, and work 'as is', in fact, I am using it now, and I have 0 problems with those libs.

Re: MSVC error

Posted: 14 Jun 2011, 03:21
by Seismo
Buginator wrote:
Seismo wrote:
Buginator wrote:
Seismo wrote:As you can see here http://developer.wz2100.net/ticket/2783 is a new development package for Visual Studio 2010. I was not able to upload the complete package due to size limitation is set to 5 MB (need 5.6).
What was wrong with the "official" dev package ? http://developer.wz2100.net/ticket/2643
Yeah, it still is a work in progress, since I am moving/changing things around, but, for the most part, it should work 'as is'.
Ah ok, i tried that "official" package what you call "should work" - forget it. Sorry pal, it's far away from being usable. Mixed VS versions, too old libs, broken compile due to some worse lines of code. The package you have uploaded have missing .vcxproj files which are necessary for msvc2010.
O_o
Those were all made using VS2010, and work 'as is', in fact, I am using it now, and I have 0 problems with those libs.
Well, i do not want to make you work bad, but only your devpkg is not enough to build it. For VS 2010 any part is missing and also related code changes are necessary. May you say next, make it for you own. Hmm, i put that all together in one fix. Should not be much work to use it right after downloding.
I also tried http://download.gna.org/warzone/develop ... runk/msvc/ and http://developer.wz2100.net/ticket/1881 without much progress. Therefor i build a new one and baked all together. May you will have a look at my work?

BTW: your ticket http://developer.wz2100.net/ticket/2643 has less information than needed to realize that this is for Visual Studio 2010 and the current SVN trunk.