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 (Read 6852 times)
CallMeYaz
Newbies
*
Offline


Posts: 3
Joined: Oct 27th, 2014
Error Compiling
Oct 27th, 2014 at 4:27am
Print Post  
Using Atmel Studio 6.2.1502 - Service Pack 1 and VM 1407.10 SP5

Cannot compile the simplest of sketches.

void setup()
{

  /* add setup code here */

}

void loop()
{

  /* add main program code here */

}

Output window has this at the end:

Compiling 'Test' for 'Arduino Mega w/ ATmega2560 (Mega 2560)'
Build folder: 560
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: VISUALMICRO_COMPILER_VER=1;
Architecture Tools: C:\Arduino/hardware/tools/avr/bin/
GCC: 4.8.1
Sketchbook: file:///D:/Source/Arduino
Core Include Paths
Include Path 'C:\Arduino\hardware\arduino\avr\cores\arduino'
Include Path 'C:\Arduino\hardware\arduino\avr\variants\mega'
"C:\Arduino/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=157 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"C:\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Arduino\hardware\arduino\avr\variants\mega" t.cpp" -o t.cpp.o" -DVISUALMICRO_COMPILER_VER=1
Error compiling

Can you please help me?

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling
Reply #1 - Oct 27th, 2014 at 12:32pm
Print Post  
Hi,

I see you are using Arduino 1.5.7 beta. 

Some users have had to add the path to the arduino folder to the beginning of their control panel>environment variables>Path property.

In your case the 'Path' property will need C:\Arduino; at the front of it.

If that works please let me know and we can add a fix into the next release.

Thanks
  
Back to top
WWW  
IP Logged
 
CallMeYaz
Newbies
*
Offline


Posts: 3
Joined: Oct 27th, 2014
Re: Error Compiling
Reply #2 - Oct 29th, 2014 at 4:25am
Print Post  
That fixed that problem, but now I get lots of compile errors that I didn't get with Arduino 1.5.6-r2, so I guess I will go back to that version.

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling
Reply #3 - Oct 29th, 2014 at 9:11am
Print Post  
Can you please check the date/time of the applications.txt file which is located below the "program files (x86)/visual micro/arduino .../platforms" folder

What is the datetime of the file?

Thanks
  
Back to top
WWW  
IP Logged
 
CallMeYaz
Newbies
*
Offline


Posts: 3
Joined: Oct 27th, 2014
Re: Error Compiling
Reply #4 - Oct 31st, 2014 at 2:21am
Print Post  
10/18/14 12:20 PM, 9 days earlier than I last uninstalled/reinstalled Visual Micro.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling
Reply #5 - Oct 31st, 2014 at 11:47am
Print Post  
Thanks
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling
Reply #6 - Jan 15th, 2015 at 6:24pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint