Author Topic: Error Compiling Latest G3D Viewer  (Read 1438 times)

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Error Compiling Latest G3D Viewer
« on: 5 March 2011, 09:11:51 »
Code: [Select]
1>------ Build started: Project: gae_g3dviewer, Configuration: Release Win32 ------
1>Linking...
1>dialogs.obj : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
1>physfs.lib(inflate.obj) : error LNK2005: _inflatePrime already defined in wxzlib.lib(inflate.obj)
1>physfs.lib(inflate.obj) : error LNK2005: _inflateGetHeader already defined in wxzlib.lib(inflate.obj)
1>physfs.lib(adler32.obj) : error LNK2005: _adler32_combine already defined in wxzlib.lib(adler32.obj)
1>physfs.lib(crc32.obj) : error LNK2005: _crc32_combine already defined in wxzlib.lib(crc32.obj)
1>   Creating library C:\SVN\glestae\build\source\g3d_viewer\Release\gae_g3dviewer.lib and object C:\SVN\glestae\build\source\g3d_viewer\Release\gae_g3dviewer.exp
1>C:\SVN\glestae\build\source\g3d_viewer\Release\gae_g3dviewer.exe : fatal error LNK1169: one or more multiply defined symbols found
I've tried multiple times...

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Error Compiling Latest G3D Viewer
« Reply #1 on: 5 March 2011, 10:48:48 »
Yeah, sorry, this is a known problem, should probably look into to fixing it one day  :P

you'll need to remove the wxpng and wxzlib libraries from the gae_g3dviewer project.

Right click gae_g3dviewer in the solution explorer, select 'properties' then navigate to,
Configuration Properties -> Linker -> Input, then click somewhere in the 'Additional Dependencies' field and a little button with 3 dots will appear at its end, click it.

find and remove these two,
Glest Advanced Engine - Code Monkey

Timeline | Downloads

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: Error Compiling Latest G3D Viewer
« Reply #2 on: 6 March 2011, 08:16:59 »
Oh, I see.
So, it worked. Thanks for the fix and yeah, you should fix it someday.  :P