[filesystem] boost::filesystem::current_path: No such file or directory
Hi, sometimes, when I run my program, I get that exception: terminate called after throwing an instance of 'boost::filesystem3::filesystem_error' what(): boost::filesystem::current_path: No such file or directory Aborted What could be the cause for this? I am using 1.49.0 on linux x86_64 compiled with g++ 4.6.2. Regards, Frédéric
2012/9/13 Frédéric Bron:
What could be the cause for this? I am using 1.49.0 on linux x86_64 compiled with g++ 4.6.2.
Please show minimal compilable code, and describe the process of reproducing the error. -- Regards, niXman ___________________________________________________ Dual-target(32 & 64 bit) MinGW compilers for 32 and 64 bit Windows: http://sourceforge.net/projects/mingwbuilds/
Please show minimal compilable code, and describe the process of reproducing the error.
I suspect the minimal example is this:
#include
On Thu, 13 Sep 2012 00:41:36 +0200, Frédéric Bron
Please show minimal compilable code, and describe the process of reproducing the error.
I suspect the minimal example is this:
#include
int main() { boost::filesystem::initial_path(); return 0; } I does not happen very often but when it does, I just have to close the terminal and open a new one. I have the impression that it appears when I used a lot Ctrl+C to kill previous programs running in the same terminal but I have no proof of that.
It looks very similar to that: http://code.google.com/p/libtorrent/issues/detail?id=132
Frédéric
This happens when you remove the directory which the terminal has as current and create it a new without terminal noticing it has been recreated. I believe cd ~ && cd ~- in terminal should help. -- Slava
This happens when you remove the directory which the terminal has as current and create it a new without terminal noticing it has been recreated. I believe cd ~ && cd ~- in terminal should help.
Thanks, I will think at this when it happens again. Sadly, I cannot reproduce this on demand Frédéric
terminate is called because you are specifying an non-existing file and the
exception thrown is uncaught all the way past main.
On Wed, Sep 12, 2012 at 4:09 PM, Frédéric Bron
Hi,
sometimes, when I run my program, I get that exception:
terminate called after throwing an instance of 'boost::filesystem3::filesystem_error' what(): boost::filesystem::current_path: No such file or directory Aborted
What could be the cause for this? I am using 1.49.0 on linux x86_64 compiled with g++ 4.6.2.
Regards,
Frédéric _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (4)
-
Frédéric Bron
-
niXman
-
Sunil Matta
-
Viatcheslav.Sysoltsev@h-d-gmbh.de