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 eval in extra flags (Read 247 times)
Jyce
Junior Member
**
Offline


Posts: 13
Joined: Jan 24th, 2017
eval in extra flags
Jun 17th, 2025 at 12:17pm
Print Post  
Hello,
I'm trying to add extra flags to my project that is evaluated : 
%"""

The evaluation works in VS intellisense but not in the build.

Is it possible to have this ?

Thanks,

(VS 2019, Visual studio up to date).

« Last Edit: Jun 17th, 2025 at 12:33pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2728
Joined: Feb 13th, 2019
Re: eval in extra flags
Reply #1 - Jun 17th, 2025 at 12:43pm
Print Post  
Thanks for the report.

There are a few known ways of doing this (depending on specific requirements) where you can either use the standard C++ Macros, or run a script to inject the version information into a header within the project at build time (which could include hashes etc).

We have a YouTube video covering this: https://www.youtube.com/watch?v=jQ8O9Hi3cDA

Which also links to a demo project: https://www.visualmicro.com/downloads/VerifiableBoardFirmware.zip

Does that help?
  
Back to top
IP Logged
 
Jyce
Junior Member
**
Offline


Posts: 13
Joined: Jan 24th, 2017
Re: eval in extra flags
Reply #2 - Jun 18th, 2025 at 10:00am
Print Post  
Thats perfect.
Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint