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
Hot Topic (More than 8 Replies) Can not compile anything... (Read 8312 times)
fikret
Newbies
*
Offline


Posts: 5
Joined: May 8th, 2015
Can not compile anything...
May 8th, 2015 at 5:11pm
Print Post  
Hi all,

I was using Visual Micro with Atmel Studio 6.2 without any problem about 1 month but today i can not compile anything. I am getting these errors;

Quote:

Compiling 'Temp1' for 'Arduino Uno'
WString.cpp:In member function 'String& String::copy(const __FlashStringHelper*, unsigned int)'
WString.cpp:189:26: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
WString.cpp:189:26: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
WString.cpp:189:20: error: expected primary-expression before 'const'
WString.cpp:189:20: error: expected ')' before 'const'
WString.cpp:In member function 'String& String:Shockedperator=(const __FlashStringHelper*)'
WString.cpp:249:39: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
WString.cpp:249:39: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
WString.cpp:249:33: error: expected primary-expression before 'const'
WString.cpp:249:33: error: expected ')' before 'const'
Error compiling core


PS: I am getting these errors with all my existing or new sketches. Also when i compile an empty sketch same result...

Best Regards...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can not compile anything...
Reply #1 - May 8th, 2015 at 5:22pm
Print Post  
Hi,

Sounds like arduino ide install has changed or has something missing.

Please switch on "tools>options>visual micro>compiler" "verbose" and "show build properties"

In a new empty sketch project build and email the output to info [at] visualmicro.com

Thanks
« Last Edit: May 8th, 2015 at 5:23pm by Tim@Visual Micro »  
Back to top
IP Logged
 
fikret
Newbies
*
Offline


Posts: 5
Joined: May 8th, 2015
Re: Can not compile anything...
Reply #2 - May 8th, 2015 at 5:33pm
Print Post  
Thank you for your quick answer. Please check your inbox.

Best regards...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can not compile anything...
Reply #3 - May 8th, 2015 at 5:52pm
Print Post  
Thanks for the information.

I can see from the output that you have upgraded to arduino 1.6.4 which must have happened in the last few days?

The 1.6.3+ systems are using a new system that supports downloadable tool chain versions it is still in as release candidate for some minor final checks.

I don't know if this is related but might be

In this case it looks like you downloaded a new arduino core using the boards manager, then installed arduino 1.6.4 which has an updated static core that is a later version that the one you downloaded via the boards manager. 

I can see the compiler needs a tweak, it has included the core from the arduinoide/hardware folder (static/builtin) but is using your chosen downloaded core for the actual compiler source and tools.

Please open the Micro Explorer and view the Boards Manager. See that you have installed, for example, Arduino 1.6.6 core? If so click it and you will be prompted to remove it. Click OK. then click the Rescan button. This will revert back to using the built in core that is installed with the Arduino ide. 

NB: If you run the Arduino Ide before doing this you will see a warning about the installed downloaded core being out of date. This is part of the same problem, Arduino are working to improve the system. My vote is for them to stop shipping the built-in avr core which, incidentally, they didn't do in 1.6.2 but then received lots of complaints from makefile users.
  
Back to top
IP Logged
 
fikret
Newbies
*
Offline


Posts: 5
Joined: May 8th, 2015
Re: Can not compile anything...
Reply #4 - May 8th, 2015 at 6:56pm
Print Post  
Yes i was update to 1.6.4 few days ago. After your last message revert back to 1.6.0 but nothing changed and same errors.

Also i tried to delete the WString.h and WString.cpp files from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino directory and compile finished without error with empty sketch but now i cant use String type variable.

Here is the sketch and errors when i use the String type variable;

Quote:

void setup()
{
    String str = "This is the string;
}

void loop()
{

}



Quote:

Compiling 'Test2' for 'Arduino Uno'
Test2.cpp.o:In function `loop'
Test2.ino:String(char const*)'
Test2.ino:~String()'
collect2*:error: ld returned 1 exit status
Error creating .elf


Best Regards...
  
Back to top
 
IP Logged
 
fikret
Newbies
*
Offline


Posts: 5
Joined: May 8th, 2015
Re: Can not compile anything...
Reply #5 - May 8th, 2015 at 7:03pm
Print Post  
Last time info: 

I tried to compile with Visual Studio 2013 and same error...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can not compile anything...
Reply #6 - May 8th, 2015 at 7:04pm
Print Post  
Hi,

Did you click "Build>Clean Solution" after removing the previous downloaded core? That might be a good thing so we are sure you get a full/clean compile.

Please also try compiling with the Arduino Ide to see if you have the same error

Thanks

edit: Visual Micro is the same program in both atmel and visual studio. It does not use either ide for the compile.
« Last Edit: May 8th, 2015 at 7:04pm by Tim@Visual Micro »  
Back to top
IP Logged
 
fikret
Newbies
*
Offline


Posts: 5
Joined: May 8th, 2015
Re: Can not compile anything...
Reply #7 - May 8th, 2015 at 8:11pm
Print Post  
- Yes i clicked the "Build>Clean Solution".
- There is no problem with Arduino IDE.

Let me explain what i did else and solved the problem;

1. Uninstalled all of the related applications. (Atmel Studio, Arduino IDE, Visual Micro)
2. Installed Atmel Studio and Visual Micro.
3. Started to install Arduino IDE from version 1.0.5 to 1.6.4
4. Everything was ok until the Arduino IDE 1.6.0. After this version and higher i got same errors.

Now i am using Arduino IDE 1.5.5 r2. This is the latest version without error for me...

I don't know exact problem and what is the disadvantage of the using lower version.

Thank you for your help.

PS: Sorry about my English. It's not my native language  Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Can not compile anything...
Reply #8 - May 8th, 2015 at 8:54pm
Print Post  
When you upgraded your Arduino version from 1.5 to 1.6 did you change the visual micro ide locations window from 1.5 to 1.6 and set the install location of the arduino ide?

This is required!
« Last Edit: May 13th, 2015 at 4:38pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint