Boost logo

Boost Users :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2004-03-06 23:03:24


Adam H. Pendleton wrote:
> I am using the Boost libraries, specifically the Spirit portions, on
> Mac OS X Panther, using XCode. Every time I try to compile my program
> with the Boost libraries I get a linker error:
>
> ld: warning prebinding disabled because of undefined symbols
> ld: Undefined symbols:
> boost::throw_exception(std::exception const&)
>
> Even if I link against all the boost libraries that were created, I
> still can't get this program to link. The documentation talks about
> the libraries being compiled with or without BOOST_NO_EXCEPTIONS, but
> they don't indicate that the program won't link in either case.

It won't link only if BOOST_NO_EXCEPTIONS is defined, and it _might be_
getting defined implicitly somewhere in config headers (e.g. line 47 in
"boost/config/compiler/gcc.hpp"). I'd check if that's the case:

    #include <boost/config.hpp>

    #if defined(BOOST_NO_EXCEPTIONS)
    # error here!
    #endif

--
Aleksey Gurtovoy
MetaCommunications Engineering

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net