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
Hot Topic (More than 8 Replies) Link error when compiling for 'Arduino/Genuino Uno' (Read 2705 times)
Lonoriel
Newbies
*
Offline


Posts: 7
Joined: Nov 14th, 2019
Link error when compiling for 'Arduino/Genuino Uno'
Nov 14th, 2019 at 8:52am
Print Post  
Hello,

When I start a new Visual Micro Arduino project in visual studio 2019, I get a link error when I compile the empty sketch.
With a empty sketch I mean a empty setup and loop function.

See the attachment for the output.

If I compile the sketch for other boards than the 'Arduino/Genuino Uno' it compiles without any problems.

What do I miss?


Best regards, Lonoriel

  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #1 - Nov 14th, 2019 at 9:57am
Print Post  
I don't see this on my machine at present, could you confirm the below information:

The same sketch works for the Genuino/Uno when compiled in Arduino?

The Arduino IDE version installed?
  
Back to top
 
IP Logged
 
Lonoriel
Newbies
*
Offline


Posts: 7
Joined: Nov 14th, 2019
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #2 - Nov 14th, 2019 at 11:24am
Print Post  
Found a solution for my problem, when I change the IDE from 'Arduino 1.6/1.8' to 'Arduino 1.9 (beta)' it compiles again.
  
Back to top
 
IP Logged
 
Lonoriel
Newbies
*
Offline


Posts: 7
Joined: Nov 14th, 2019
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #3 - Nov 14th, 2019 at 11:26am
Print Post  
When I run the empty sketch in Arduino IDE it compiles fine.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #4 - Nov 14th, 2019 at 11:55am
Print Post  
Glad its working for you, can you confirm which IDE is set in the  'Arduino 1.6/1.8' and 'Arduino 1.9 (beta)' windows?
  
Back to top
 
IP Logged
 
Lonoriel
Newbies
*
Offline


Posts: 7
Joined: Nov 14th, 2019
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #5 - Nov 14th, 2019 at 12:50pm
Print Post  
I'm not sure if I understand the question but within visual studio -> vMicro 
I changed the IDE from 'Arduino 1.6/1.8' to 'Arduino 1.9 (beta)' and then it compiles fine.
If I change it back to 'Arduino 1.6/1.8' I get the link error again.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #6 - Nov 14th, 2019 at 1:37pm
Print Post  
Few questions

1) What IDE paths show for Arduino 1.6/1.8 and for Arduino 19 beta
2) Does the problem happen if the toolbar is set to Release instead of Debug
3) Does the problem happen after clicking "Build>Clean Solution" and then Building.

Thanks
  
Back to top
WWW  
IP Logged
 
Lonoriel
Newbies
*
Offline


Posts: 7
Joined: Nov 14th, 2019
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #7 - Nov 15th, 2019 at 8:24am
Print Post  
1. Path is set to 'C:\Program Files (x86)\Arduino'
2. It builds in release (for 'Arduino 1.6/1.8')
3. After a Buid->Clean Solution it does build too.

Thanks for helping me out, back to programming again Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #8 - Nov 15th, 2019 at 5:00pm
Print Post  
Thanks for the update.

Can you please confirm that after the "Clean" the build also works when the toolbar is set to "Debug" ?

and can you confirm that you recently updated the Arduino IDE version?

  
Back to top
WWW  
IP Logged
 
Lonoriel
Newbies
*
Offline


Posts: 7
Joined: Nov 14th, 2019
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #9 - Nov 15th, 2019 at 6:09pm
Print Post  
I can confirm if I switch it back (from Release) to Debug and do a clean it works too, bit embarrasing.
I updated the Arduino IDE to the last version yesterday.

Thanks for your time.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #10 - Nov 15th, 2019 at 6:15pm
Print Post  
Thanks. You should not need to click build>clean under normal operation. Only if you encounter a strange compile problem.

Normally Visual Micro handles this without need for clean. 

Do you recall which version of arduino you had installed previously?
« Last Edit: Nov 15th, 2019 at 6:15pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #11 - Nov 16th, 2019 at 12:27pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
WWW  
IP Logged
 
Lonoriel
Newbies
*
Offline


Posts: 7
Joined: Nov 14th, 2019
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #12 - Nov 17th, 2019 at 10:24am
Print Post  
Unfortunately I can't recall what the previous version of the IDE was.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Link error when compiling for 'Arduino/Genuino Uno'
Reply #13 - Nov 17th, 2019 at 11:53am
Print Post  
No problem, we will track it down.

Thanks again.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint