Boost logo

Boost Users :

From: Fred J. (phddas_at_[hidden])
Date: 2004-09-12 00:12:45


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


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