Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Preprocessor output? (Read 268 times)
Peter D. Pruyne
Newbies
*
Offline


Posts: 5
Joined: Nov 22nd, 2024
Preprocessor output?
Nov 22nd, 2024 at 9:35am
Print Post  
Hi, new to VisualMicro, decades of VisualStudio.  Sorry if this has been covered somewhere, tried searching for preprocessor and pre-processor, no-hits.  Really?  Anyway..

Trying to sort out a boards.txt issue, I went looking for "preprocessor output to file" or an equivalent option.  Can't find it.  Seems odd, haven't seen a compiler without the ability.

How do I get the preproccessor output?
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2529
Joined: Feb 13th, 2019
Re: Preprocessor output?
Reply #1 - Nov 22nd, 2024 at 9:47am
Print Post  
Thanks for the report.

The Arduino standards used in Visual Micro perform a number of steps to change the INO code to plain CPP code for compilation (merging of INO files, injection of #include Arduino.h, function prototype injection).  The merged file can be seen in the Build Folder (link in the output) with SketchName.cpp.

Within the build folder, there is the .vmpreproc\sketch-gcc-e-clean.cpp which shows the complete pre-processed code (generated using the -E preprocessing option for gcc).

From your errors it seems that either a header or some compilation #defines are missing, if you know where these are supposed to come from we can help in getting these included.
« Last Edit: Nov 22nd, 2024 at 9:50am by Simon@Visual Micro »  
Back to top
IP Logged
 
Peter D. Pruyne
Newbies
*
Offline


Posts: 5
Joined: Nov 22nd, 2024
Re: Preprocessor output?
Reply #2 - Nov 23rd, 2024 at 8:42am
Print Post  
Thank you very much.  The problem was indeed with #defines, and being able to view the preprocessed output will help in the future.  Thanks again!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint