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 compiling .ino files (Read 3252 times)
wernerp
Newbies
*
Offline


Posts: 3
Joined: Oct 13th, 2014
Error compiling .ino files
Oct 13th, 2014 at 4:52pm
Print Post  
Hallo, please i need help.
I am using Atmel Studio, Arduino 1.5.8 + 1.0.6, and the Visual Micro addin. On compiling .ino files i will get the following Errors: 
--------------------
Compiling 'pulse-to-pulse' for 'Arduino Duemilanove w/ ATmega328'
core.a(main.cpp.o)*:In function `main'
main.cpp:undefined reference to `setup'
main.cpp:undefined reference to `loop'
Error creating .elf
--------------------
This happens to all .ino files. I down loaded both Arduino and a new Addin. After installing i got the same Problem.
Regards wernerP. 
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling .ino files
Reply #1 - Oct 13th, 2014 at 5:52pm
Print Post  
Hi,

Can you post the code from the [sketchname].ino or email to info [at] visualmicro.com

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


Posts: 12136
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling .ino files
Reply #2 - Oct 14th, 2014 at 3:25pm
Print Post  
Hi,

Thanks for sending the sketch. I think the issue is probably the dashes in the sketch name. 

Arduino historically only allows alpha and numeric chars in sketch names and must not start with numeric.

These rules are changing for newer Arduino hardware and tool chains however it's safe to stick with simple names for now.

If you open the sketch in Atmel Studio then right click the .INO name and click rename, then Visual Micro should handle the renaming of the folder and project for you. 

Thanks

General Note

Remember that Arduino sketches must be in a folder with the same name and for Visual micro the atmel studio project must also have the same name.
  
Back to top
IP Logged
 
wernerp
Newbies
*
Offline


Posts: 3
Joined: Oct 13th, 2014
Re: Error compiling .ino files
Reply #3 - Oct 15th, 2014 at 3:56pm
Print Post  
Hi,
that's fine, it works.
But there are so many labels with one or two Underscores ("_") in the whole program, i cannot realize that.
The problems changed between the two versions of Arduino IDE, that is terrible too.
But many thanks for your quick help.

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