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 fails in VM, works in Arduino, after library update... (Read 906 times)
Boomalator
Junior Member
**
Offline


Posts: 16
Location: Calgary, Canada
Joined: Mar 9th, 2017
Compile fails in VM, works in Arduino, after library update...
Nov 25th, 2019 at 7:12am
Print Post  
I hadn't been doing Arduino/ESP stuff for a while, so I had several out-of-date libraries. After updating them all in Arduino and re-scanning them in IDE, a build referencing NeoPixels is failing in VM but compiling in the Arduino IDE.

Arduino is 1.8.10
Visual Studio is 2019 - 16.3.10
Visual Micro is 1911.17.5 (2019-11-24) 

Code (C++)
Select All
Build failed for project 'Linear_Clock'
ld.exe: Linear_Clock.cpp.o: in function __static_initialization_and_destruction_0
Linear_Clock.ino:145: undefined reference to Adafruit_NeoPixel  Adafruit_NeoPixel(unsigned short, unsigned short, unsigned short)
ld.exe: D:\Arduino\Linear_Clock\Linear_Clock.ino:24: undefined reference to Adafruit_NeoPixel::Adafruit_NeoPixel(unsigned short, unsigned short, unsigned short)

collect2.exe*: error: ld returned 1 exit status 



If I switch to Visual Micro (No IDE) it compiles and uploads. 

But it bugs me!!






  

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: Compile fails in VM, works in Arduino, after library update...
Reply #1 - Nov 25th, 2019 at 2:11pm
Print Post  
Thanks for the really detailed reports.

Does "Build>Clean Solution" fix the issue?
  
Back to top
WWW  
IP Logged
 
Boomalator
Junior Member
**
Offline


Posts: 16
Location: Calgary, Canada
Joined: Mar 9th, 2017
Re: Compile fails in VM, works in Arduino, after library update...
Reply #2 - Nov 25th, 2019 at 7:58pm
Print Post  
Tim@Visual Micro wrote on Nov 25th, 2019 at 2:11pm:
Does "Build>Clean Solution" fix the issue?

Well, that was stupidly simple.

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