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 Missing Error Messages during compile (Read 4020 times)
Chris Crowe
Newbies
*
Offline


Posts: 7
Joined: Aug 4th, 2012
Missing Error Messages during compile
Feb 23rd, 2014 at 6:24pm
Print Post  
I have often found that some of the compiler errors that are shown are missing details.

For example I just got this compiler error


Compiling 'RealTimeClockTest' for 'Arduino Mega 2560 or Mega ADK'
RealTimeClock.cpp.o : : In function `DateTime::day() const':
RTClib.h : LastDateTimeRead'
RealTimeClock.cpp.o : : In function `RealTimeClock::ReadDateTime()':
RealTimeClock.cpp : LastDateTimeRead'
RealTimeClock.cpp : LastDateTimeRead'
Error creating .elf


But if I turn on verbose in the options and then run the actual command to do the compile I can see the following


...\RealTimeClock.cpp.o: In function `DateTime::day() const':
c:\Dev\Arduino\arduino-1.0.1\libraries\RTClib/RTClib.h:16: undefined reference to `RealTimeClock::LastDateTimeRead'
..\RealTimeClock.cpp.o: In function `RealTimeClock::ReadDateTime()':
..\RealTimeClock.cpp:31: undefined reference to `RealTimeClock::LastDateTimeRead'
..\RealTimeClock.cpp:31: undefined reference to `RealTimeClock::LastDateTimeRead'


As you can see your parsing of the messages is removing important information.

In the case of the 

In function `DateTime::day() const':
RTClib.h : LastDateTimeRead'


should be


In function `DateTime::day() const':
c:\Dev\Arduino\arduino-1.0.1\libraries\RTClib/RTClib.h:16: undefined reference to `RealTimeClock::LastDateTimeRead'


and

RealTimeClock.cpp.o : : In function `RealTimeClock::ReadDateTime()':
RealTimeClock.cpp : LastDateTimeRead'
RealTimeClock.cpp : LastDateTimeRead'


should be


..\RealTimeClock.cpp.o: In function `RealTimeClock::ReadDateTime()':
..\RealTimeClock.cpp:31: undefined reference to `RealTimeClock::LastDateTimeRead'
..\RealTimeClock.cpp:31: undefined reference to `RealTimeClock::LastDateTimeRead'


It would really help if this could be addressed as it is pretty hard to determine the errors without a lot of extra work.

I am using 1.1401.26

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Missing Error Messages during compile
Reply #1 - Feb 23rd, 2014 at 7:25pm
Print Post  
Hi Chris,

1)
Out of interest, does double clicking the error take you to the line of code? Do you see a red squiggle with an error message in the code?

2)
I think this might have been fixed in 1402.31 https://visualmicro.codeplex.com/releases/view/106554

If not then please email the sketch so we have something to test with.

Please also confirm the version of Arduino. I am not sure if we updated the error msgs for 1.0.x in the recent fixes?

note

Physical locations will always be hidden and all errors are re-pointed back to the original source code away from the temp folder to avoid user confusion when dlb clicking or viewing errors. In the case of the .ino files it is a combined .cpp that is compiled so the original line numbers also have to be altered. This is why the errors have to be edited in any way at all

Thanks
« Last Edit: Feb 23rd, 2014 at 7:52pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Chris Crowe
Newbies
*
Offline


Posts: 7
Joined: Aug 4th, 2012
Re: Missing Error Messages during compile
Reply #2 - Feb 24th, 2014 at 5:58am
Print Post  
hi Tim

I will try to reproduce it and send you a sample.

I also was using 1.01 

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Missing Error Messages during compile
Reply #3 - Feb 24th, 2014 at 12:26pm
Print Post  
Ok, if you have time please give Arduino 1.5.5-r2 a try and see the difference. 1.5.5 should work the same for your avr processors.

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