Subject: Re: [Boost-build] installing boost on Mac OS X (version 10.5.5)
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-10-21 07:10:17
On Tuesday 21 October 2008 13:47:14 Judith Wiesinger wrote:
> 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,
> *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:
The error message say that the symbols from the boost.system library are not
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
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk