Re: [libxml++] segmentation fault on examples



Hi Yan

2005/10/17, langlois yan <langlois_yan yahoo fr>:
> 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

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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]