
Hello I am having this compile error. maany thanks //boostDir.cpp #include "/usr/include/boost/filesystem/operations.hpp" #include "/usr/include/boost/filesystem/fstream.hpp" #include <iostream> namespace fs = boost::filesystem; int main(){ fs::remove_all("/home/sam/testingText.txt"); fs::create_directory("/home/sam/again"); } $ g++ boostDir.cpp -o boostdir /tmp/ccQb4t4C.o(.text+0x20): In function `main': : undefined reference to `boost::filesystem::path::path[in-charge](char const*)' /tmp/ccQb4t4C.o(.text+0x2b): In function `main': : undefined reference to `boost::filesystem::remove_all(boost::filesystem::path const&)' /tmp/ccQb4t4C.o(.text+0x6a): In function `main': : undefined reference to `boost::filesystem::path::path[in-charge](char const*)' /tmp/ccQb4t4C.o(.text+0x75): In function `main': : undefined reference to `boost::filesystem::create_directory(boost::filesystem::path const&)' collect2: ld returned 1 exit status _______________________________ Do you Yahoo!? Shop for Back-to-School deals on Yahoo! Shopping. http://shopping.yahoo.com/backtoschool