
12 Sep
2004
12 Sep
'04
9:40 p.m.
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