Boost logo

Boost Users :

From: Joshua Moore-Oliva (josh_at_[hidden])
Date: 2003-11-28 12:30:58


I'm having trouble compiling code on BSD with boost, specifically boost_filesystem.

I'm using gcc 3.2.3

On linux, there is no problem, buit on BSD.. this is what happens.

Notice that there is no trouble FINDING -lboost_filesystem to link with, but that I'm getting undefined references to anything boost-related. This compiles without any errors on both BSD and linux, but the linking on BSD is the problem.

Has anyone had any experiences getting boost to work on BSD before?

Thanks, Josh.

<snip>
signalConfigReload.o \
                 signalShutdown.o -o Batcher -L. -lChatsUtils -lConfig -lFfm -lFfmStream -lShared -lboost_filesystem -L/usr/local/pqxx/lib -lpqxx
markFinished.o: In function `Batcher::markFinished()':
/home/josh/src/mastermailings/code/daemons/Batcher/Batcher/markFinished.cpp:9: undefined reference to `boost::filesystem::path::path[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/josh/src/mastermailings/code/daemons/Batcher/Batcher/markFinished.cpp:9: undefined reference to `boost::filesystem::path::path[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/josh/src/mastermailings/code/daemons/Batcher/Batcher/markFinished.cpp:9: undefined reference to `boost::filesystem::rename(boost::filesystem::path const&, boost::filesystem::path const&)'
restore.o: In function `Batcher::restore(Ffm&, std::basic_ifstream<char, std::char_traits<char> >&)':
/home/josh/src/mastermailings/code/daemons/Batcher/Batcher/restore.cpp:8: undefined reference to `boost::filesystem::path::path[in-charge](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/josh/src/mastermailings/code/daemons/Batcher/Batcher/restore.cpp:8: undefined reference to `boost::filesystem::exists(boost::filesystem::path const&)'
collect2: ld returned 1 exit status


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