Boost logo

Boost-Build :

Subject: [Boost-build] installing boost on Mac OS X (version 10.5.5)
From: Judith Wiesinger (judith.wiesinger_at_[hidden])
Date: 2008-10-21 05:47:14


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:
      boost::system::error_code::error_code()in cc8DzEJA.o
      __static_initialization_and_destruction_0(int, int)in cc8DzEJA.o
      __static_initialization_and_destruction_0(int, int)in cc8DzEJA.o
      __static_initialization_and_destruction_0(int, int)in ccTlj0UU.o
      __static_initialization_and_destruction_0(int, int)in ccTlj0UU.o
      __static_initialization_and_destruction_0(int, int)in cc7tPlvp.o
      __static_initialization_and_destruction_0(int, int)in cc7tPlvp.o
      __static_initialization_and_destruction_0(int, int)in ccYeW0Je.o
      __static_initialization_and_destruction_0(int, int)in ccYeW0Je.o
  "boost::system::get_generic_category()", referenced from:
      __static_initialization_and_destruction_0(int, int)in cc8DzEJA.o
      __static_initialization_and_destruction_0(int, int)in cc8DzEJA.o
      __static_initialization_and_destruction_0(int, int)in cc8DzEJA.o
      __static_initialization_and_destruction_0(int, int)in ccTlj0UU.o
      __static_initialization_and_destruction_0(int, int)in ccTlj0UU.o
      __static_initialization_and_destruction_0(int, int)in ccTlj0UU.o
      __static_initialization_and_destruction_0(int, int)in cc7tPlvp.o
      __static_initialization_and_destruction_0(int, int)in cc7tPlvp.o
      __static_initialization_and_destruction_0(int, int)in cc7tPlvp.o
      __static_initialization_and_destruction_0(int, int)in ccYeW0Je.o
      __static_initialization_and_destruction_0(int, int)in ccYeW0Je.o
      __static_initialization_and_destruction_0(int, int)in ccYeW0Je.o
*ld: symbol(s) not found*
collect2: ld returned 1 exit status

(remark: I in ld is a small L)



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