Boost logo

Boost :

From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2003-05-28 11:37:57


hi there,

I'm trying to load a plugin from the same directory the application was
run from, so I'm doing the following:

int main(int argc, char **argv)
{
   //...
   fs::path path(argv[0]);
   fs::path dir(path.branch_path());
   //...

but as soon as I start the application as './application', I get
an exception telling me that ...

boost::filesystem::path: invalid name "." in path: "./application"

What am I missing ?

Thanks,
                Stefan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk