MSVC error

For code related discussions and questions
User avatar
Ezio
Trained
Trained
Posts: 306
Joined: 24 Apr 2010, 16:42

MSVC error

Post 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
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: MSVC error

Post by Buginator »

What compiler version ?
and it ends here.
User avatar
Ezio
Trained
Trained
Posts: 306
Joined: 24 Apr 2010, 16:42

Re: MSVC error

Post by Ezio »

forgot to add it :P
i'm using VS 2010 service pack 1
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: MSVC error

Post by Buginator »

Odd, works well here, with VS 2010. Can you give me the build logs ?
and it ends here.
User avatar
Ezio
Trained
Trained
Posts: 306
Joined: 24 Apr 2010, 16:42

Re: MSVC error

Post by Ezio »

all i did just open vs2k8 file -> convert & backup-> build solution.
tell me if you need other files :)
Attachments
Warzone2100.vs2k8.log
debug log
(62.79 KiB) Downloaded 433 times
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: MSVC error

Post 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.
and it ends here.
running sand
New user
Posts: 2
Joined: 01 Jun 2011, 19:17

Re: MSVC error

Post 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
running sand
New user
Posts: 2
Joined: 01 Jun 2011, 19:17

Re: MSVC error

Post 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?
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

Re: MSVC error

Post by Goth Zagog-Thou »

I should note that the nightly also has bad stuttering in the audio, like an overload is happening.
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: MSVC error

Post 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:
Seismo
Trained
Trained
Posts: 70
Joined: 06 Feb 2010, 17:32

Re: MSVC error

Post 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).
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: MSVC error

Post 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'.
and it ends here.
Seismo
Trained
Trained
Posts: 70
Joined: 06 Feb 2010, 17:32

Re: MSVC error

Post 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.
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: MSVC error

Post 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.
and it ends here.
Seismo
Trained
Trained
Posts: 70
Joined: 06 Feb 2010, 17:32

Re: MSVC error

Post 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.
Post Reply