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 compiler switch (Read 6091 times)
Gregory
Junior Member
Developer
**
Offline


Posts: 18
Joined: Nov 30th, 2012
compiler switch
Apr 13th, 2013 at 1:47pm
Print Post  
Is it possible to use/set compiler switches?   Although that is never normally done (or possible in arduino environment) I have a very special case where I need all CPP files to receive a specific -D switch.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compiler switch
Reply #1 - Apr 13th, 2013 at 2:44pm
Print Post  
Yes, you can use the "Defines - Project" property

I've added an example of compiler defines to the wiki
  
Back to top
WWW  
IP Logged
 
Gregory
Junior Member
Developer
**
Offline


Posts: 18
Joined: Nov 30th, 2012
Re: compiler switch
Reply #2 - Apr 13th, 2013 at 3:47pm
Print Post  
Thanks for the response here...

Not sure, though, I can locate the "Defines - Project" property you mention.   I must be looking in all the wrong places, but I can't find this in the project properties or the configuration properties.   

I apologize for the thick-headedness. 

Where, precisely, is this property located in the VS IDE?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compiler switch
Reply #3 - Apr 13th, 2013 at 6:05pm
Print Post  
I've added this wiki article describing how to access project properties

Does it help?
  
Back to top
WWW  
IP Logged
 
Gregory
Junior Member
Developer
**
Offline


Posts: 18
Joined: Nov 30th, 2012
Re: compiler switch
Reply #4 - Apr 13th, 2013 at 6:21pm
Print Post  
Unfortunately, get an error trying to reach that URL:


Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /post/2013/04/13/Project-Property-Window.aspx

Version Information: Microsoft .NET Framework Version:2.0.50727.3643; ASP.NET Version:2.0.50727.3634
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: compiler switch
Reply #5 - Apr 13th, 2013 at 6:44pm
Print Post  
Sorry that was an automatic blog publication delay. I have now forced publication of the url.

Please try the link again
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint