Horde3D
http://horde3d.org/forums/

Built-in RapidXML and GCC 4.7
http://horde3d.org/forums/viewtopic.php?f=3&t=1735
Page 1 of 1

Author:  Skrylar [ 22.10.2012, 03:37 ]
Post subject:  Built-in RapidXML and GCC 4.7

I found that if you're using a newer version of GCC (I'm using TDM-GCC 4.7), its become more strict about how templated functions may be invoked. You will receive an error that template functions are being invoked before they are defined, and you have to either:

  • Add -fpermissive to your compile flags, or
  • Put forward declarations for the template methods in rapidxml_print.h

Compiling with -O3 seems to result in a crash deep inside libstdc++, however this appears to be the fault of TDM-GCC and not Horde itself. Building with -O2 and adding forward declarations as above, appears to build and run without incident.

Author:  Volker [ 13.09.2013, 10:47 ]
Post subject:  Re: Built-in RapidXML and GCC 4.7

Should be fixed in current svn trunk or github develop branch

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/