On Tue, Oct 21, 2008 at 1:10 PM, Vladimir Prus <ghost@cs.msu.su> wrote:
On Tuesday 21 October 2008 13:47:14 Judith Wiesinger wrote:The error message say that the symbols from the boost.system library are not
> hi everybody,
>
> I have installed boost (version 1.36) on my new mac and when I want to
> compile any program using parts of the boost library I have got the
> following error message (please, find below - "Undefined symbols...").
> (remark: There is should be no problem with my own source code since it
> compiles fine on other systems.)
>
> Did I forget to set some environmental variables or where does this error
> come from?
> If anybody could help me with that it would be awesome.
>
> Thanks a lot,
> Judith
>
> *g++* -I /usr/local/include/boost-1_36/ FinancialEvent.cpp Trade.cpp
> Quote.cpp FileHandler.cpp FEventsPerMin.cpp FEventsPerDay.cpp
> FEventsPerStock.cpp FEventHandler.cpp Average.cpp AvgAndStdDev.cpp
> MainPgm.cpp -o realDataHandler.exe -L~/boost/lib/
> -lboost_iostreams-xgcc40-mt -lboost_filesystem-xgcc40-mt-1_36
> -lboost_filesystem-xgcc40-mt -dynamic
>
> *Undefined symbols*:
> "boost::system::get_system_category()", referenced from:
found. Does anything in your linker line call for boost.system to be included?
Why are you including boost.filesystem twice in the linker command line? Try
using just -lboost_filesystem-xgcc40-mt-1_36. Can you run
ldd ~/boost/lib/libboost_filesystem-xgcc40-mt-1_36.so
- Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build