
2 Jan
2013
2 Jan
'13
9:19 a.m.
the stack trace looks like this happens before reaching main() function. Hmm, the file is named example.cpp ;) Can you give us a minimal working code example that triggers this crash?
Certainly. Here's an example that causes the segfault (took me a while to wheedle it down to this):
#include <boost/filesystem.hpp> boost::filesystem::path baseDirectory = boost::filesystem::current_path(); int main() { return 0; }
Here's code that doesn't segfault:
#include <boost/filesystem.hpp> int main() { boost::filesystem::path baseDirectory = boost::filesystem::current_path(); return 0; }
Thanks, Shawn