------- Comment #1 from sailzeng at tencent dot com 2007-02-03 07:19 ------- I am sorry . I find this bug have not relation with gcc. <-L/usr/local/mysql/lib -lmysqlclient_r -lmygcc > cause this bug. MySQL could compile with -fno-rtti.
By the way ,I find if I adjust link parameter order. Program run ok. g++ -fvisibility=hidden -fvisibility-inlines-hidden -W -Wall -Wpointer-arith -O3 -g -pipe -Wno-strict-aliasing -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -DTOLUA_RELEASE -I/usr/local/ACE_wrappers -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -c -frtti -I/data/qqpet2/code/src/commlib -I/data/qqpet2/code/src/zenlib -I/usr/local/mysql/include -I/usr/local/ACE_wrappers -I/usr/local/sqlite-3.3.6/ -I/usr/local/lua-5.1.1/include testcfg.cpp -o object/testcfg.o g++ -fvisibility=hidden -fvisibility-inlines-hidden -W -Wall -Wpointer-arith -O3 -g -pipe -Wno-strict-aliasing -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -DTOLUA_RELEASE -I/usr/local/ACE_wrappers -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -L/data/qqpet2/code/lib -lcommlib -L/data/qqpet2/code/lib -lzenlib -L/usr/local/mysql/lib -lmysqlclient_r -lmygcc -lz -L/usr/local/ACE_wrappers/lib -lACE -I/usr/local/sqlite-3.3.6/.libs/ -lsqlite3 -L/usr/local/lua-5.1.1/lib -llua -ltoluapp ./object/testcfg.o -o../../bin/testcfg -- sailzeng at tencent dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30679