Boost logo

Boost Users :

From: Andrej van der Zee (mavdzee_at_[hidden])
Date: 2008-07-09 01:12:33


Hi,

> When building the library, you need to set the
> variable BOOST_WINDOWS_API which I imagine should be
> declared like this in the user-config.jam file:
> <cflags>/DBOOST_WINDOWS_API
> <cxxflags>/DBOOST_WINDOWS_API
> <compilerflags>/DBOOST_WINDOWS_API

I tried this with <define>BOOST_WINDOWS_API but still
the test-program below gives me the output:
"Directory does not exist: c:" (and /tmp obviously
does exist). I also tried experimenting with
BOOST_WINDOWAS_PATH, but nothing seems to help. What
am I doing wrong?

Cheers,
Andrej

#include <iostream>
#include <boost/filesystem.hpp>

using namespace boost::filesystem;

int main(int argc, char* argv[])
{
  path p1("c:", native);
  path p2("/tmp", native);

  if (!exists(p1))
  {
    std::cerr << "Directory does not exist: " << p1;
    return 1;
  }

  if (!exists(p2))
  {
    std::cerr << "Directory does not exist: " << p2;
    return 1;
  }

  return 0;
}

      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html


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