Utiliser Tinyxml Sur Un Proj Psp


XBoy
 Share

Messages recommandés

Salut tout le monde,

voila je developpe une petite appli (dont je vous parlerais lorsqu'elle sera fonctionnelle), et j'aimerai avoir un fichier de conf au format XML, pour cela j'aimerai utiliser tinyxml qui est un class cpp tres legere et facile d'utilisation.

Le probleme ce que j'ai des erreurs de compile (linkage plus exactement).

Pour faire des tests simple j'ai repris un hello world qui compile seul. et j'ai rajouté dans le Makefile les fichiers de tinyxml qui m'interesses, voici le Makefile complet :

TARGET = target<BR>PSP_EBOOT_TITLE = Hello WorldSRC = main.cppTINYXML_DIR = ./tinyxmlTINYXML_OBJS = $(TINYXML_DIR)/tinyxmlerror.cpp \		$(TINYXML_DIR)/tinystr.cpp \		$(TINYXML_DIR)/tinyxmlparser.cpp \		$(TINYXML_DIR)/tinyxml.cppOBJS = $(SRC:.cpp=.o) $(TINYXML_OBJS:.cpp=.o)CFLAGS = -O2 -G0 -WallCXXFLAGS = -fno-exceptions -fno-rttiASFLAGS =INCDIR := $(TINYXML_DIR)LIBDIR =#LIBS = -lcurl -lzLIBS =LDFLAGS =EXTRA_TARGETS = EBOOT.PBPPSPSDK=$(shell psp-config --pspsdk-path)include $(PSPSDK)/lib/build.mak

Lorsque je compile j'ai le droit a ca :

psp-g++ -I./tinyxml -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -fno-exceptions -fno-rtti   -c -o main.o main.cpppsp-g++ -I./tinyxml -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -fno-exceptions -fno-rtti   -c -o tinyxml/tinyxmlerror.o tinyxml/tinyxmlerror.cpppsp-g++ -I./tinyxml -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -fno-exceptions -fno-rtti   -c -o tinyxml/tinystr.o tinyxml/tinystr.cpppsp-g++ -I./tinyxml -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -fno-exceptions -fno-rtti   -c -o tinyxml/tinyxmlparser.o tinyxml/tinyxmlparser.cpppsp-g++ -I./tinyxml -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -fno-exceptions -fno-rtti   -c -o tinyxml/tinyxml.o tinyxml/tinyxml.cpppsp-gcc -I./tinyxml -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150  -L. -L/usr/local/pspdev/psp/sdk/lib   main.o tinyxml/tinyxmlerror.o tinyxml/tinystr.o tinyxml/tinyxmlparser.o tinyxml/tinyxml.o  -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o target.elftinyxml/tinystr.o: In function `TiXmlString::assign(char const*, unsigned int)':tinystr.cpp:(.text+0x90): undefined reference to `operator delete[](void*)'tinystr.cpp:(.text+0xbc): undefined reference to `operator new[](unsigned int)'... suivit d'une 40aine d'autre insultes du genre

Les premieres lignes on voit bien que tout comple ok, mais au linkage ca merdoi.

une idée du probleme ?

j'ai vu que PSPoste utilise tinyxml mais je vois rien de special dans leur code ou Makefile qui m'aiderait a faire marcher... et leur code compile pas chez moi il doit falloir des libs en plus...

merci pour l'aide

Lien vers le commentaire
Partager sur d'autres sites

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant
 Share