Updated script 005-libbuletml to support gcc >= 4.3

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
sauron_le_noir
Posts: 203
Joined: Sat Jul 05, 2008 8:03 am

Updated script 005-libbuletml to support gcc >= 4.3

Post by sauron_le_noir »

I've uploaded a upgrade of the psplibraries that correct a compilation problem
with gcc >= 4.3 for the libbulletml librarie

url : http://194.7.150.2/psplibraries.tgz
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

Can you post a patch? it is easier to maintain the source repositories :)
sauron_le_noir
Posts: 203
Joined: Sat Jul 05, 2008 8:03 am

Post by sauron_le_noir »

the patch is provided int the tgz in the directory patch
just add include of stdlib and string.h so gcc >= 4.3 is happy ;)
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

$ svn commit
Sending src/calc.cpp
Sending src/tinyxml/tinyxml.cpp
Sending src/tinyxml/tinyxmlparser.cpp
Sending src/tinyxml/xmltest.cpp
Transmitting file data ....
Committed revision 2423.
He included a patch for libbulletml inside the psplibraries packages, I just applied that to the library itself.

Thanks again.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

$ svn diff
Index: src/calc.cpp
===================================================================
--- src/calc.cpp (revision 2422)
+++ src/calc.cpp (working copy)
@@ -17,6 +17,7 @@
#define YYSTYPE float
#define YYERROR_VERBOSE

+#include <string.h>
#include <cmath>
#include <cctype>

Index: src/tinyxml/xmltest.cpp
===================================================================
--- src/tinyxml/xmltest.cpp (revision 2422)
+++ src/tinyxml/xmltest.cpp (working copy)
@@ -1,3 +1,4 @@
+#include <stdlib.h>
#include "tinyxml.h"

//
Index: src/tinyxml/tinyxmlparser.cpp
===================================================================
--- src/tinyxml/tinyxmlparser.cpp (revision 2422)
+++ src/tinyxml/tinyxmlparser.cpp (working copy)
@@ -23,6 +23,7 @@


#include "tinyxml.h"
+#include <string.h>
#include <ctype.h>

const char* TiXmlBase::SkipWhiteSpace( const char* p )
Index: src/tinyxml/tinyxml.cpp
===================================================================
--- src/tinyxml/tinyxml.cpp (revision 2422)
+++ src/tinyxml/tinyxml.cpp (working copy)
@@ -20,7 +20,8 @@
3. This notice may not be removed or altered from any source
distribution.
*/
-
+#include <stdlib.h>
+#include <string.h>
#include "tinyxml.h"
This is the patch, if you're curious.
User avatar
F0L
Posts: 8
Joined: Sun Mar 09, 2008 5:06 am
Location: Wales, United Kingdom
Contact:

Post by F0L »

ooPo wrote:
$ svn diff
Index: src/calc.cpp
===================================================================
--- src/calc.cpp (revision 2422)
+++ src/calc.cpp (working copy)
@@ -17,6 +17,7 @@
#define YYSTYPE float
#define YYERROR_VERBOSE

+#include <string.h>
#include <cmath>
#include <cctype>
This issue seems to still exist. psplibraries fail to compile. After I apply this manually to calc.cpp, it compiles fine.
Post Reply