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 Linkage Errors in VM - Arduino IDE ok (Read 1994 times)
Rich R
Junior Member
**
Offline


Posts: 31
Joined: Mar 2nd, 2016
Linkage Errors in VM - Arduino IDE ok
Jul 1st, 2020 at 12:17pm
Print Post  
I'm trying to build a project for an Arduino MiniLP - when I build/link in the Arduino IDE it works ok, but get error messages in VM.  IT appears the linker can not resolve a number of functions.  Everything compiles ok.   

Here is the first of the errors:

ccKMpcgS.ltrans0.ltrans.o*: In function digitalClockDisplay()
ReferenceMiniLPCode.ino:244: read(tmElements_t&)
 
ccKMpcgS.ltrans0.ltrans.o*: In function global constructors keyed to 65535_0_ReferenceMiniLPCode.cpp.o.4358
   (.text.startup+0xfe): undefined reference to SDL_Arduino_INA3221::SDL_Arduino_INA3221(unsigned char, float)
   (.text.startup+0x108): undefined reference to XAdafruit_INA219::XAdafruit_INA219(unsigned char)
   (.text.startup+0x110): undefined reference to XClosedCube_HDC1080::XClosedCube_HDC1080()
 
ccKMpcgS.ltrans0.ltrans.o*: In function setSyncProvider
Time.cpp:313: get()
Time.cpp:313: get()

I've attached the output from VM (ErrorOutput).  A "good" output from the Arduino IDE is tacked on the bottom.

I'm guessing this is some sort of library conflict in how VM searches vs. the IDE?   I can run IDE with "use external editor" and make changes in VM and it still works.   

Thanks!
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Linkage Errors in VM - Arduino IDE ok
Reply #1 - Jul 1st, 2020 at 12:55pm
Print Post  
Thanks for all the info. Please try clicking "Build>Clean Solution" to see if this is some sort of compiler cache conflict.

If that still fails then please make a simple .ino that includes the libs and basic to see if that also fails. If it does please zip the project sources and email to us so we can investigate.

« Last Edit: Jul 1st, 2020 at 1:04pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Rich R
Junior Member
**
Offline


Posts: 31
Joined: Mar 2nd, 2016
Re: Linkage Errors in VM - Arduino IDE ok
Reply #2 - Jul 1st, 2020 at 2:04pm
Print Post  
Thanks.  Cleaning the directory did not change the output.    I've zipped up the build directory.  There are a few libraries I use that are not in the Arduino tree, I can zip those up separately if you need them, just let me know.
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Linkage Errors in VM - Arduino IDE ok
Reply #3 - Jul 1st, 2020 at 4:22pm
Print Post  
Yes it would be good to have your libs thanks
  
Back to top
WWW  
IP Logged
 
Rich R
Junior Member
**
Offline


Posts: 31
Joined: Mar 2nd, 2016
Re: Linkage Errors in VM - Arduino IDE ok
Reply #4 - Jul 1st, 2020 at 4:36pm
Print Post  
The libraries exceed the upload file size.  Do you have a BOX or Google Drive folder I can put them in?   Feed free to email me with the address on file if needed.
« Last Edit: Jul 1st, 2020 at 4:39pm by Rich R »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Linkage Errors in VM - Arduino IDE ok
Reply #5 - Jul 1st, 2020 at 4:44pm
Print Post  
lease email to the address in yellow above, if that fails please add links to the libs or if they exist in library manager then names.

Thanks
  
Back to top
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Linkage Errors in VM - Arduino IDE ok
Reply #6 - Jul 2nd, 2020 at 3:04pm
Print Post  
Thanks for the files, and after investigating further it appears the files in the root of the project are not included in the solution file.

These can be added by either:-
A) Close VS and Re-Open VS, File > Open > Arduino Project, and select the INO file (vMicro will re-scan the project and add them automatically)

or 

B) In the solution explorer window click the "Show all files" button at the top (1), then you can see all missing files not included with a red error icon. You can then right click those files, and folders to include them (2).



Once this has completed it will all compile in vMicro as expected.
« Last Edit: Jul 2nd, 2020 at 3:25pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Rich R
Junior Member
**
Offline


Posts: 31
Joined: Mar 2nd, 2016
Re: Linkage Errors in VM - Arduino IDE ok
Reply #7 - Jul 2nd, 2020 at 4:08pm
Print Post  
Yep, I should have seen that myself... dumb mistake.

Thanks alot!

Rich

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