|
From: Christophe de V. <cde...@gm...> - 2005-10-18 07:54:53
|
Hi Yan
2005/10/17, langlois yan <lan...@ya...>:
> Hi,
>
> I copied examples from the web site. I wrote my
> Makefile :
>
> CXXFLAGS+=3D $(shell pkg-config --cflags libxml++-2.6)
> LDFLAGS+=3D $(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
It looks like you're linking against the libstdc++ of two different
versions of gcc.
The segmentation faults comes from this.
Be sure to use the same compiler to compile libxml++ and your program.
Christophe
|