Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-08-05 12:49:47


Ah, yes. For this reason I often repeat the entire sequence of input files
when invoking the gcc linker; it helps to get all of the dependencies
resolved.

-Dave

----- Original Message -----
From: <rwgk_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Sunday, August 05, 2001 5:41 AM
Subject: [boost] Re: Boost.Python and ImportError

> --- In boost_at_y..., "No Name" <nathanoj_at_m...> wrote:
> > When I try linking using libboost_python.a
> > rather than the object files, I get an ImportError:
> > undefined symbol.
> >
> > >>g++ -I/home/Jon/boost_1_23_0 -I/usr/local/include/python2.1 -
> fPIC -ftemplate-depth-21 -g -c getting_started2.cpp
> > >>g++ -shared libboost_python.a getting_started2.o -o
> getting_started2.so
>
> It could be important to list the library *after* your object
> files, e.g.:
>
> g++ -shared getting_started2.o libboost_python.a -o
> getting_started2.so
>
> Ralf
>
>
> Info: http://www.boost.org Unsubscribe:
<mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk