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 Cannot compile the simplest project with a "cpp" file (Read 7399 times)
Simonb
Junior Member
**
Offline


Posts: 10
Joined: Sep 11th, 2015
Cannot compile the simplest project with a "cpp" file
Sep 11th, 2015 at 7:20pm
Print Post  
I'm trying to create an arduino project with cpp and h files. As soon as I add code into the cpp file, I consistently get a 
"collect2.exe*:error: ld returned 1 exit status". 

The screenshot (VS2013) shows the whole program. By the way, compilation works with Arduino 1.6.3 IDE.  Thanks

  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot compile the simplest project with a "cpp" file
Reply #1 - Sep 11th, 2015 at 7:37pm
Print Post  
Thanks for the report

There will be an update shortly but you can switch "tools>options>visual micro>compatibility>compile files in project" = False

Then it will work
  
Back to top
WWW  
IP Logged
 
Simonb
Junior Member
**
Offline


Posts: 10
Joined: Sep 11th, 2015
Re: Cannot compile the simplest project with a "cpp" file
Reply #2 - Sep 11th, 2015 at 8:37pm
Print Post  
thanks!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot compile the simplest project with a "cpp" file
Reply #3 - Sep 11th, 2015 at 9:03pm
Print Post  
Thanks again. The 1509.11 version of Visual Micro has been release with a fix!
  
Back to top
WWW  
IP Logged
 
Simonb
Junior Member
**
Offline


Posts: 10
Joined: Sep 11th, 2015
Re: Cannot compile the simplest project with a "cpp" file
Reply #4 - Sep 11th, 2015 at 9:08pm
Print Post  
how to proceed to update?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot compile the simplest project with a "cpp" file
Reply #5 - Sep 11th, 2015 at 9:52pm
Print Post  
It should be suggested in "Tools>Extensions and Updates"?
  
Back to top
WWW  
IP Logged
 
Simonb
Junior Member
**
Offline


Posts: 10
Joined: Sep 11th, 2015
Re: Cannot compile the simplest project with a "cpp" file
Reply #6 - Sep 11th, 2015 at 10:08pm
Print Post  
well almost, I see visual micro into that menu, but the only options I got are uninstall and disable.

Thanks for that anyways.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot compile the simplest project with a "cpp" file
Reply #7 - Sep 11th, 2015 at 10:14pm
Print Post  
Maybe vs only refreshes the list every few hours. 

You can see the gallery page has the latest version 1509.11 which also can be used for install/update. It's the same ms system.

https://visualstudiogallery.msdn.microsoft.com/069a905d-387d-4415-bc37-665a5ac9c...

But if you don't want to put cpp files in sub folders you don't need it
« Last Edit: Sep 11th, 2015 at 10:15pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint