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 in core.a(main.cpp.o) (Read 7718 times)
rapol
Newbies
*
Offline


Posts: 3
Joined: Nov 23rd, 2014
error compiling in core.a(main.cpp.o)
Nov 23rd, 2014 at 1:27pm
Print Post  
Hello,

I am new in this forum.

First, please excuse my bad Engilsh!

I have already executed some scripts in the environment IDE Arduino. They are OK.
I try now to use Visual Studio 2013 with the plugin visual micro. My version of Arduino is 1.0.x  (IDE Arduino = 1.0.6)

For scripts that I import in visual studio from exemples found in Program Files\Arduino\examples there is no problem.

For few scripts created in IDE Arduindo and running fine in the board Arduino Uno, when I open them in Visual Studio, I obtain this message when I start the compilation and upload process by pressing [F5]:

Compiling 'Multi_Starter2_jmd_ports2-9_VS' for 'Arduino Uno'
core.a(main.cpp.o)*:In function `main'
main.cpp:undefined reference to `setup'
main.cpp:undefined reference to `loop'
Error creating .elf

Noting is send to Arduino board (nothing appears in COMx serial Windows  -- "connect" is checked)

If I run Alt+F11 in Visual Studio for analyze only my code, all seems good:

1>------ Début de la régénération globale : Projet : Multi_Starter2_jmd_ports2-9_VS, Configuration : Debug Win32 ------
========== Régénération globale : 1 a réussi, 0 a échoué, 0 a été ignoré ==========


Can you help me please?

Thank you very much

Rapol
« Last Edit: Nov 23rd, 2014 at 1:41pm by rapol »  
Back to top
 
IP Logged
 
rapol
Newbies
*
Offline


Posts: 3
Joined: Nov 23rd, 2014
Re: error compiling in core.a(main.cpp.o)
Reply #1 - Nov 23rd, 2014 at 4:57pm
Print Post  
It is not always easy to find an answer in an english forum when we badly speak English. In spite of several hours of 
researches, before and after having written this post, I have just found the solution:

the visual micro plugin requires that the filenames contain only alphanumeric characters.

I hope that it can help those who as me begin with visual micro.

best regards

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: error compiling in core.a(main.cpp.o)
Reply #2 - Nov 24th, 2014 at 5:08pm
Print Post  
Thanks!

Actually Arduino did not support file names like this in previous versions.

If the latest Arduino supports these names then Visual Micro must do this.

I will add some testing time to the schedule so we work same as Arduino.
  
Back to top
WWW  
IP Logged
 
rapol
Newbies
*
Offline


Posts: 3
Joined: Nov 23rd, 2014
Re: error compiling in core.a(main.cpp.o)
Reply #3 - Nov 25th, 2014 at 9:25am
Print Post  
Hello

Thanks for your repy.

This problem is not very grave when we know it. But the error message which it produces is puzzling. Wink 

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