Boost logo

Boost Users :

Subject: Re: [Boost-users] Undefined reference to boost_serialization even though it is specified with -lboost_serialization
From: Cedric Laczny (cedric.laczny_at_[hidden])
Date: 2011-02-24 05:54:03


Hi Slava,

On Thursday, 24. February 2011 11:32:12 Viatcheslav.Sysoltsev_at_[hidden]
wrote:
> > Here's the command used for linking:
> > /bin/bash ../libtool --tag=CXX --mode=link g++ -Wno-deprecated -g -O2
> > -
> > lboost_serialization -L/local/cedric/boost_1_45_0/stage/lib -o test
> > test-
> > main.o ../includes/Parser/libparser.a -lgsl -lgslcblas -lm
>
> Hi Cedric,
>
> I did't understand exactly what you meant with 'compiling remotely'
> (cross-compiling?),

I meant "compiling on a remote machine" by that. Sorry for not being more
clear about this. I have only basic user privileges on that machine, so I had
to resort to building (not installing) boost-1.45 locally.

> but if
> I don't mistake, you should specify first -L, then -l in command line. If
> changing order does not help, use binutils to find where the symbols are
> located. Pay attention as well to linker messages like 'skipping ... due
> to incompatible format' or something alike if you cross-compile.
>
> -- Slava
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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