Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
compiler switch (Read 3848 times)
Gregory
Junior Member
Developer
**
Offline



Posts: 18
compiler switch
Apr 13th, 2013 at 2:47pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: compiler switch
Reply #1 - Apr 13th, 2013 at 3:44pm
 
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
Re: compiler switch
Reply #2 - Apr 13th, 2013 at 4:47pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: compiler switch
Reply #3 - Apr 13th, 2013 at 7:05pm
 
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
Re: compiler switch
Reply #4 - Apr 13th, 2013 at 7:21pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10395
United Kingdom
Re: compiler switch
Reply #5 - Apr 13th, 2013 at 7:44pm
 
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 Topic Print