FWIW: I am using gcc 3.3.1 compiled from scratch with sources from gcc.gnu.org under OS X. This works with full optimization (gcc 3.3 did not).
I didn't see your other messages, but I hope this is relevant: I had serious trouble with multiple initializations of a static variable in the Boost.Python library. Somehow I got it to work after hours of trial-and-error. See boost/libs/python/src/converter/registry.cpp, BOOST_PYTHON_CONVERTER_REGISTRY_APPLE_MACH_WORKAROUND. It could be that the std::cout << std::flush trick is the main trick, I am not sure, I only know it works the way you see it. --- Paul Hamilton <[EMAIL PROTECTED]> wrote: > > I managed to get my stuff built using all shared libraries on OS X, but > I came across the following problems: > > - I had to hack "boost/format/feedargs.hpp" to remove the static > variable (I have explained in other posts why). > > - I am going to work around this by only having a single include point > for "format.hpp", but it will limit my further use of this. > - I sent a message earlier about changing this code so that is does > something a lot simpler than it does, and it fixes my problem. Any > thoughts about that? > > - I had to turn off optimization and inlines for the release build > because I was getting a bunch of "non-virtual thunk" errors in the link. > > - I will test with the latest build from Apple to see if this goes > away, since when I googled I received lot's of "this is a compiler bug, > turn off optimization" messages. > > But in the meantime, rather than needing to hack "darwin-tools.jam" to > turn off inlining/optimization, how do you change these for the default > build? > > I tried this in my Jamfile: > > dll cppxmlobjlib : $(XMLOBJ_PATH)/$(CPP_SOURCES).cpp > <lib>../libs/cpppersistxmllib > <lib>../libs/cpppersistlib > <lib>../libs/cppreflectlib > : <sysinclude>$(BOOST_ROOT) <find-library>expat <optimization>off > <inlining>off > : debug release > ; > > But it gives me a warning saying that "<optimization>off" is not > compatible with <optimization>full. > > How do you override those defaults? > > Paul. > > --------------------- > Paul Hamilton > pHamtec P/L - Software Makers > http://www.phamtec.com/ > mailto:[EMAIL PROTECTED] > > The information transmitted is intended only for the person or entity > to which it is addressed and may contain confidential and/or privileged > material. Any review, retransmission, dissemination or other use of, or > taking of any action in reliance upon, this information by persons or > entities other than the intended recipient is prohibited. If you > received this in error, please contact the sender and delete the > material from any computer. > ----------------------------------------------------- > > _______________________________________________ > Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost