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 Error creating .elf (Solved) (Read 5035 times)
wolf
Junior Member
**
Offline


Posts: 33
Joined: Sep 19th, 2014
Error creating .elf (Solved)
Sep 25th, 2014 at 9:57pm
Print Post  
Hi,
I am new to Visual Micro and working through the Visual Micro User Guide with a simple Blink example.
How to export source code so it can be uploaded as an attachment?
Should this .elf error be posted on a forum for MSVS, Atmel, Visual Micro, Arduino, Teensy, or C++?

Error creating .elf Output: Quote:
Compiling 'Sketch1' for 'Teensy 2.0'
Build folder: file:///C:/Users/wolf/AppData/Local/VMicro/Arduino/Builds/Sketch1/teensy2
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: F_CPU=16000000L;USB_SERIAL;LAYOUT_US_ENGLISH;VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///C:/Users/wolf/Documents/Arduino
Core Include Paths
Include Path 'C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy'
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega32u4 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -felide-constructors -I"C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy" -o "    -DF_CPU=16000000L -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DVISUALMICRO_COMPILER_VER=1  -DTEENSYDUINO=118 
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega32u4 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -felide-constructors -I"C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy" -o  "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\Sketch1\teensy2\wait.cpp"  -DF_CPU=16000000L -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DVISUALMICRO_COMPILER_VER=1  -DTEENSYDUINO=118 
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections,--relax -mmcu=atmega32u4 -L"C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\Sketch1\teensy2" -o "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\Sketch1\teensy2\Sketch1.elf" " "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\Sketch1\teensy2\wait.cpp.o" "C:\Users\wolf\AppData\Local\VMicro\Arduino\Builds\Sketch1\teensy2\core.a" -lm
Sketch1.cpp.o:In function `loop'
Sketch1.ino:waitHere()'
Error creating .elf

This sketch worked before I added the WaitClass, when it was a single .ino file.

Thank you.
« Last Edit: Sep 26th, 2014 at 6:33am by wolf »  
Back to top
 
IP Logged
 
wolf
Junior Member
**
Offline


Posts: 33
Joined: Sep 19th, 2014
Re: Error creating .elf
Reply #1 - Sep 26th, 2014 at 2:44am
Print Post  
Solved...

I Verified the .ino file in Arduino IDE and got this error:
Quote:
Sketch1.cpp.o: In function `loop':
C:\Program Files (x86)\Arduino/Sketch1.ino:19: undefined reference to `WaitClass::waitHere()'

Sure enough, the function definition was missing it's scope resolution.
Fixed the syntax and now Teensy blinks. Smiley
« Last Edit: Sep 26th, 2014 at 2:45am by wolf »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error creating .elf (Solved)
Reply #2 - Sep 26th, 2014 at 11:18am
Print Post  
Good, I was going to suggest using arduino to verify.

It looks like we need a better error message.

With Visual Micro you can double click to drill down into errors (most of the time). The reformatting of the errors to allow for this has caused issue with the messages themselves!

I'll add it to the list for the next release
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint