preprocessor output
-
- Posts: 220
- Joined: 23 Jan 2012, 17:07
- Location: Round Rock, TX
preprocessor output
Is it possible to get the preprocessor's output dumped to a file? (Especially when it gets an error.) I'm having troubles getting a macro to compile properly and I can't determine what the problem is. I know it's probably something simple, but with the stuff going on with token substitution, etc., it's hard to tell what the preprocessor is spitting out.
McSummation aka James
http://www.mcsummation.com/Mindstorms/
http://www.mcsummation.com/Mindstorms/
Re: preprocessor output
Sometimes it is faster to just post your code. If you get a preprocessor error I don't you can get any kind of intermediate output. You can try -nbc=<filename> in the switches to see what it outputs.
John Hansen
John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: preprocessor output
If you are using BCC, try pressing F12 after compiling the program.
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
-
- Posts: 220
- Joined: 23 Jan 2012, 17:07
- Location: Round Rock, TX
Re: preprocessor output
F12 gives the output of the NXC compiler that is the input to the NBC assembler.
John, I was trying to KISS, that's what led me off into the weeds.
John, I was trying to KISS, that's what led me off into the weeds.
McSummation aka James
http://www.mcsummation.com/Mindstorms/
http://www.mcsummation.com/Mindstorms/
Who is online
Users browsing this forum: No registered users and 1 guest