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 Compile Single C++ File? (Read 2573 times)
Uncle
Newbies
*
Offline


Posts: 2
Joined: Jan 10th, 2019
Compile Single C++ File?
Jan 11th, 2019 at 7:13am
Print Post  
In a Visual Studio native build one can right-click on a C++ file in the Solution Explorer and select "Compile". In my Visual Micro projects doing so results in a build failure, for example:

1>------ Build started: Project: jBot, Configuration: Debug Win32 ------
1>Build started 11/01/2019 5:43:32 PM.
1>Target PlatformPrepareForBuild:
1>  C:\Program Files (x86)\Microsoft Visual ,5): error MSB8038: Platform Toolset is not defined. Please select one of the available Platform Toolsets in the Project Properties UI.
1>Done building target "PlatformPrepareForBuild" in project "jBot.vcxproj" -- FAILED.


In Microsoft.Cpp.Platform.targets there is no mention of g++, arduino or avr. 

Is this functionality supported by VM? If so, how do I configure the toolchain? (Building a project or a solution otherwise work fine.)

I am using Win 10 64-bit, VS 2017 Community Edition v. 15.9.4 with  VM v. 1812.9 and Arduino 1.8.8. In Tools > Options > Visual Micro > General, the toolchain location is "avr". 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile Single C++ File?
Reply #1 - Aug 29th, 2019 at 12:35pm
Print Post  
« Last Edit: Aug 29th, 2019 at 12:36pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint