FAQ
This is driving me nuts. The release build works like a champ, and
the debug version crashes and burns. (Same issue that I have been
posting about). I am also using the exact same mysql and mysql dylibs
for both builds.

Do you guys see anything blatantly wrong below? If you can spare a
few minutes and look at the stuff below, to help me through this, I
would be grateful, ugh... I am curious if it's some little quirk with
the debug build set up that I just haven't figured out.

Down below is the following:
1) gcc compiler switches for release mode (compiles, links, and runs
fine)
2) gcc linker switches for release mode (compiles, links, and runs fine)
3) gcc compiler switches for debug mode (compiles, links, and crashes)
4) gcc linker switches for debug mode (compiles, links, and crashes)
5,6,7) Are in message part 2

Here is what is sent to gcc for the release builds: (This works)

1) (Compile)
gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-
blocks -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -fmessage-
length=0 -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-
version-min=10.5 -gdwarf-2 -I/Users/grahamreitz/Development/Projects/
tac/build/tac.build/Release/tac.build/tac.hmap -F/Users/grahamreitz/
Development/Projects/tac/build/Release -I/Users/grahamreitz/
Development/Libraries -I/Users/grahamreitz/Development/Libraries/boost/
include/boost-1_34_1 -I/sw/include/mysql -I/usr/local/include/mysql++ -
I/Users/grahamreitz/Development/Projects/tac/build/Release/include -I/
Users/grahamreitz/Development/Projects/tac/build/tac.build/Release/
tac.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.5.sdk -c /
Users/grahamreitz/Development/Projects/tac/main.cpp -o /Users/
grahamreitz/Development/Projects/tac/build/tac.build/Release/tac.build/
Objects-normal/i386/main.o

2) (Link)
g++-4.0 -o /Users/grahamreitz/Development/Projects/tac/build/Release/
tac -L/Users/grahamreitz/Development/Projects/tac/build/Release -L/
Users/grahamreitz/Development/Libraries/cryptopp -L/Users/grahamreitz/
Development/Libraries/boost/lib -L/Developer/SDKs/MacOSX10.5.sdk/usr/
local/lib -L/sw/lib/mysql -F/Users/grahamreitz/Development/Projects/
tac/build/Release -filelist /Users/grahamreitz/Development/Projects/
tac/build/tac.build/Release/tac.build/Objects-normal/i386/
tac.LinkFileList -arch i386 -mmacosx-version-min=10.5 -lz -
lmysqlclient_r -lmysqlpp -lboost_serialization-mt -lcryptopp -
isysroot /Developer/SDKs/MacOSX10.5.sd

Here is what is sent to gcc for the release builds: (This compiles
and links but crashes, see output below)

3) (Compile)
gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-
blocks -O0 -Wreturn-type -Wunused-variable -D_GLIBCXX_DEBUG=1 -
D_GLIBCXX_DEBUG_PEDANTIC=1 -fmessage-length=0 -fvisibility-inlines-
hidden -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/
grahamreitz/Development/Projects/tac/build/tac.build/Debug/tac.build/
tac.hmap -F/Users/grahamreitz/Development/Projects/tac/build/Debug -I/
Users/grahamreitz/Development/Libraries -I/Users/grahamreitz/
Development/Libraries/boost/include/boost-1_34_1 -I/sw/include/mysql -
I/usr/local/include/mysql++ -I/Users/grahamreitz/Development/Projects/
tac/build/Debug/include -I/Users/grahamreitz/Development/Projects/tac/
build/tac.build/Debug/tac.build/DerivedSources -isysroot /Developer/
SDKs/MacOSX10.5.sdk -c /Users/grahamreitz/Development/Projects/tac/
main.cpp -o /Users/grahamreitz/Development/Projects/tac/build/
tac.build/Debug/tac.build/Objects-normal/i386/main.o

4) (Link)
g++-4.0 -o /Users/grahamreitz/Development/Projects/tac/build/Debug/tac
-L/Users/grahamreitz/Development/Projects/tac/build/Debug -L/Users/
grahamreitz/Development/Libraries/cryptopp -L/Users/grahamreitz/
Development/Libraries/boost/lib -L/Developer/SDKs/MacOSX10.5.sdk/usr/
local/lib -L/sw/lib/mysql -F/Users/grahamreitz/Development/Projects/
tac/build/Debug -filelist /Users/grahamreitz/Development/Projects/tac/
build/tac.build/Debug/tac.build/Objects-normal/i386/tac.LinkFileList -
arch i386 -mmacosx-version-min=10.5 -lz -lmysqlclient_r -lmysqlpp -
lboost_serialization-mt -lcryptopp -isysroot /Developer/SDKs/
MacOSX10.5.sdk

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupplusplus @
categoriesmysql
postedDec 4, '07 at 3:23a
activeDec 4, '07 at 3:23a
posts1
users1
websitemysql.com
irc#mysql

1 user in discussion

Graham Reitz: 1 post

People

Translate

site design / logo © 2023 Grokbase