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@gmail.com> 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[])
{

}