27 Mar
2007
27 Mar
'07
1:30 a.m.
Stephen Torri wrote:
When I add the BOOST_SP_ENABLE_DEBUG_HOOKS to the compile flags for g++ I am getting a segmentation fault when the boost::format lines in my code are executed. Yet when I compile without it I don't. Here is the output from my project that is in development. It gives me a error from the parser.
[...]
When I compile it with BOOST_SP_ENABLE_DEBUG_HOOKS it fails with the segfault:
[...]
Any suggestions how I can use the flag and the code to debug my original problem without causing a new one?
None at the moment, but if you post a minimal example that causes the problem, I'll take a look at it. I've tried just using boost::format as in your code with sp_debug_hooks, but it appears to work (with g++ 3.4.4 and MSVC 7.1).