[libxml++] segmentation fault on examples
- From: langlois yan <langlois_yan yahoo fr>
- To: libxmlplusplus-general lists sourceforge net
- Subject: [libxml++] segmentation fault on examples
- Date: Mon, 17 Oct 2005 15:55:58 +0200 (CEST)
Hi,
I copied examples from the web site. I wrote my
Makefile :
CXXFLAGS+= $(shell pkg-config --cflags libxml++-2.6)
LDFLAGS+= $(shell pkg-config --libs libxml++-2.6)
all:
g++ -o main main.cpp ${CXXFLAGS} ${LDFLAGS}
run:clean all
./main
clean:
rm -f *.o main
I get a winnig during the compilation process :
/usr/bin/ld: warning: libstdc++.so.6, needed by
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../libxml++-2.6.so,
may conflict with libstdc++.so.5
Then during the execution of the binary I got a
segmentation fault. I try to force the use of
libstdc++.so.6. There is no warning anymore but the
segmentation fault is always here.
If it can help you I compile the DOM parser example
and the segmentation fault happen when I try to get
the name of the attribute of the file :
(gdb) run
Starting program: /home/.../testXML/main
[Thread debugging using libthread_db enabled]
[New Thread 1079317024 (LWP 2690)]
Node name = example
Node name = example
line = 4
Node name = examplechild
Node name = examplechild
line = 5
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079317024 (LWP 2690)]
0x4002d92a in xmlpp::Attribute::get_name () from
/usr/lib/libxml++-2.6.so.2
Thanks Yan.
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]