|
Boost Users : |
From: Alexander Fradiani (a_fradiani_at_[hidden])
Date: 2007-04-05 11:27:45
Hello.
I can't initialize the path class with a char* argument.
I'm using cygwin, with the boost libraries installed as part of the cygwin
installation packages.
this is the code:
#include "boost/filesystem/operations.hpp"
#include "boost/filesystem/path.hpp"
#include <iostream>
#include <string>
using namespace boost::filesystem;
using namespace std;
int main() {
path mypath("/code/fileMan.txt");
return 0;
}
and the error i get when trying to compile with g++ is:
"undefined reference to boost::filesystem::path::path(char const*)"
I dont know exactly what is wrong, this is the first time i use the boost
libraries so i really appreciate some help, thanks
_________________________________________________________________
Charla con tus amigos en línea mediante MSN Messenger:
http://messenger.latam.msn.com/
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