Boost logo

Boost Users :

From: Stephen Jackson (stephen.jackson_at_[hidden])
Date: 2004-08-17 09:10:49


Daniel Huber wrote:
> Hi,
>
> I have done some additional testing on th eproblem that I reported
> yesterday, and I have found that the problem I was having with static
> linking under gcc 2.95.3 also occurs on gcc 3.2.2.
>

[snip]

>
> g++ -L $HOME/linux/lib/boost/lib -static -lboost_filesystem
> -gcc -I $HOME/linux/lib/boost/include/boost-1_31 test_boost.cxx
> /tmp/ccP4gcx3.o(.text+0x19): In function `main':
> : undefined reference to `boost::filesystem::initial_path()'

Try putting -lboost_filesystem _after_ test_boost.cxx

I hope this helps,

Stephen Jackson


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