Sign in to follow this  

boost::wave problems

This topic is 1510 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been playing around with boost wave (a C/C++ preprocessor).  I copied and pasted the 'quick start' example: http://www.boost.org/doc/libs/1_54_0/libs/wave/doc/quickstart.html into a simple project in VS2012 express edition, commented out the ctx.add_include_path("..."); and ctx.add_macro_definition(...); lines, and added the proper header includes and tested it.
 
It all seems to work fine except for some reason it hangs at the end.
 
I've tried stepping through in the debugger, but because it uses Spirit under the hood I couldn't follow what it was doing.  Anyone played around with this before?  Any ideas? Edited by Ryan_001

Share this post


Link to post
Share on other sites

After playing around with it for a few hours I posted this thread, and not 30s later I figured it out.  My test file had a #error directive in it (seems a legitimate thing to throw at a preprocessor to test it) which caused it to hang.  Weird, but ahh well.

 

edit: seems any preprocessor directive (like something as simple as a #define) causes it to hang.  Clearly something is awry, any thoughts?

Edited by Ryan_001

Share this post


Link to post
Share on other sites

The sample at the link above hangs on any macro preprocessor command (#define, #error, ect...).  I eventually just wrote my own preprocessor.  Does everything I need, and took less time than trying to figure out boost::wave.  I'm certain I'm doing something wrong, but at a certain point its just not worth the time/effort.

Share this post


Link to post
Share on other sites

This topic is 1510 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this