On Wed, Mar 09, 2005 at 10:34:14PM -0800, Marco Turchi wrote:
> I've compiled and linked:
> g++ -I/usr/include/mysql++ -I/usr/local/mysql/include/mysql -DVERBOSE=2
> -Wall -pthread -g -O2 -c simple1.cc
> g++ -pthread -g -O2 -L/usr/lib/mysql util.o simple1.o
> /usr/local/lib/libmysqlpp.so -lz /usr/lib/mysql/libmysqlclient_r.a
> -lcrypt -lnsl -lm -lpthread -lc -lnss_files -lnss_dns -lresolv
> -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath
> -Wl,/usr/local/lib -o simple1
I suspect there is some obvious inconsistency in your build process.
Perhaps mysql++ was not compiled for threads in whatever version is
installed in /usr/local/lib?
> So I create the backtrack:
>
> #0 0x00cb22a9 in ResUse (this=0xbfffa954, result=0xbfffa970, m=0x0) at
> char_traits.h:135
> 135 { return strlen(__s); }
This is somewhere in the standard library headers, so there's probably
something fundamentally wrong with the build.
- Chris