Boost logo

Boost Users :

From: chun ping wang (cablepuff_at_[hidden])
Date: 2006-09-12 15:23:27


sorry, i press send by accident.
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <iostream>

int main(int argc, char* argv[])
{
   boost::filesystem::path myPath(argv[0]);
   boost::filesystem::ofstream file(myPath);
}

Here are the erros i get.

  [Linker error] undefined reference to `boost::filesystem::path::path(char
const*)'
  [Linker error] undefined reference to
`boost::filesystem::path::native_file_string() const'

Anyone who uses dev-c++ ide 4.994 before care to give advice on how to
configure it so that this will compile?

On 9/12/06, chun ping wang <cablepuff_at_[hidden]> wrote:
>
> Alright i have a simple problem getting dev-cpp ide compiler to configure
> to run boost filesystem. I get the following error in this code.
>
>
> #include <boost/filesystem/operations.hpp>
> #include <boost/filesystem/path.hpp>
> #include <iostream>
>
> int main(int argc, char* argv[])
> {
>
> }
>



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