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 Truncated compiler errors (Read 3675 times)
Jo
Newbies
*
Offline


Posts: 2
Joined: Aug 26th, 2014
Truncated compiler errors
Aug 26th, 2014 at 1:01pm
Print Post  
Hi!

Small bug report follows: While building a project with a class that has a missing method definition, AtmelStudio / Visual Micro throws the following error message:

Code
Select All
Compiling 'BingoBrew' for 'Arduino Mega w/ ATmega2560 (Mega 2560)'
BingoBrew.cpp.o:In function `readAndDisplayTemps()'
BingoBrew.ino:Sensors)'
BingoBrew.ino:Sensors)'
BingoBrew.ino:Sensors)'
BingoBrew.ino:Sensors)'
collect2*:error: ld returned 1 exit status
Error creating .elf
 



Each line is truncated at the last :: in the error message - so the errors makes no sense. Building in Arduino IDE gives the full error message:

Code
Select All
BingoBrew.cpp.o: In function `readAndDisplayTemps()':
/Arduino/BingoBrew.ino:113: undefined reference to `TemperatureSensors::getTemp(TemperatureSensors::Sensors)'
/Arduino/BingoBrew.ino:115: undefined reference to `TemperatureSensors::getTemp(TemperatureSensors::Sensors)'
/Arduino/BingoBrew.ino:117: undefined reference to `TemperatureSensors::getTemp(TemperatureSensors::Sensors)'
/Arduino/BingoBrew.ino:119: undefined reference to `TemperatureSensors::getTemp(TemperatureSensors::Sensors)'
collect2: error: ld returned 1 exit status
 



It's not a big deal,  but it can be confusing Smiley

Jo

P.S. Great product, registering now!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Truncated compiler errors
Reply #1 - Aug 26th, 2014 at 1:06pm
Print Post  
Thanks for the post.

This area is due for another improvement in the next release however this is supposed to we working better than that. Can you tell me which version of the arduino ide you are using please?

Thanks
  
Back to top
IP Logged
 
Jo
Newbies
*
Offline


Posts: 2
Joined: Aug 26th, 2014
Re: Truncated compiler errors
Reply #2 - Aug 26th, 2014 at 1:11pm
Print Post  
I'm using version 1.5.7.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Truncated compiler errors
Reply #3 - Aug 26th, 2014 at 1:13pm
Print Post  
Right, we will test today or tomorrow. There is a new release due within the next week with a few minor tweaks we will try to include.

Thanks for the clear report.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint