|
Boost Users : |
From: Jeff Garland (jeff_at_[hidden])
Date: 2004-09-12 16:40:55
On Sat, 11 Sep 2004 22:12:45 -0700 (PDT), Fred J. wrote
> Hello
> I am having this compile error.
>
>...snip...
>
> $ g++ boostDir.cpp -o boostdir
> /tmp/ccQb4t4C.o(.text+0x20): In function `main':
> : undefined reference to
> `boost::filesystem::path::path[in-charge](char
> const*)'
>
>...snip...
You need to link the boost filesystem lib. So your command line needs to be
something like:
$ g++ boostDir.cpp -o boostdir -L $PATH_TO_BOOST_LIB_INSTALL -l
filesystem-gcc-d-1_31
I'm not sure what the path or name of the filesystem lib will be on your
machine, but hopefully you'll be able to figure that out...
Jeff
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