2 Jan
2013
2 Jan
'13
4:19 p.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::path baseDirectory = boost::filesystem::current_path(); int main() { return 0; }
Here's code that doesn't segfault:
#include
int main() { boost::filesystem::path baseDirectory = boost::filesystem::current_path(); return 0; }
Thanks, Shawn