Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrXML
Support for gcc 4.8

Ruben Garcia
Guest
Quote
2014-11-24 10:29:17

Here is a patch file to support gcc 4.8. Only the example needs to be modified, by adding a missing include.

--- irrxml-1.2/example/Makefile 2005-05-14 12:21:18.000000000 +0200
+++ irrxml-1.2-gcc-4.8.2/example/Makefile 2014-11-24 10:25:39.548157130 +0100
@@ -4,7 +4,7 @@
CPP = g++
OBJ = ../src/irrXML.o test.o
LINKOBJ = ../src/irrXML.o test.o
-LIBS = --no-export-all-symbols --add-stdcall-alias
+LIBS = --no-export-all-symbols --add-stdcall-alias
CXXINCS = -I"../src"
BIN = example
CXXFLAGS = $(CXXINCS)
diff -ur irrxml-1.2/example/test.cpp irrxml-1.2-gcc-4.8.2/example/test.cpp
--- irrxml-1.2/example/test.cpp 2005-07-02 09:00:56.000000000 +0200
+++ irrxml-1.2-gcc-4.8.2/example/test.cpp 2014-11-24 10:24:24.276156287 +0100
@@ -1,3 +1,4 @@
+include <string.h>
include <irrXML.h>
using namespace irr;
using namespace io;


Ruben Garcia
Guest
Quote
2014-11-24 10:30:53

The forum has removed a hash character. The LIBS line should be commented out, as none of the options are recognized anymore by gcc 4.8.2


Ruben Garcia
Guest
Quote
2014-11-24 10:36:45

The missing include is also required in gcc version 4.3.4


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact