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:identifier "X" is undefined" for all the arduino functions (Read 9132 times)
Ward
Newbies
*
Offline


Posts: 4
Joined: Jun 25th, 2015
"Error:identifier "X" is undefined" for all the arduino functions
Jun 25th, 2015 at 9:39pm
Print Post  
Hello,
All the functions from arduino show up as errors.
Most of them say "identifier "Serial/PinMode/.." is undefined
Some such as attachInterupt show up with the error "expression preceding parentheses of apparent call must have (pointer-to-) function type"

The sketch compiles and gets uploaded fine, but the errors really distract me when I'm trying to solve other problems. 
How can I solve the problem?

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Error:identifier "X" is undefined" for all the arduino functions
Reply #1 - Jun 25th, 2015 at 10:03pm
Print Post  
Hi,

Few questions:-

Which board do you have selected?
Which arduino ide version?
Which visual micro application do you have selected in the tool bar (Arduino 1.6)?

If you switch to a different board and then re-select your current board does the issue go away?

Thanks

  
Back to top
WWW  
IP Logged
 
Ward
Newbies
*
Offline


Posts: 4
Joined: Jun 25th, 2015
Re: "Error:identifier "X" is undefined" for all the arduino functions
Reply #2 - Jun 25th, 2015 at 10:36pm
Print Post  
Hello,
I was using Arduino 1.6.1, with nano.
Switching boards didn't solve it, so I changed the version to 1.0.5 and the problem was solved.
After that I removed 1.6.1 and updated to 1.6.3.
The errors are gone now.

Thank you for your time! (I should have known I had to try this first, but I'm glad it's solved now Smiley)

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: "Error:identifier "X" is undefined" for all the arduino functions
Reply #3 - Jun 26th, 2015 at 11:40am
Print Post  
Thanks for the update. I think there is a bug for 1.6.1 which we will fix however it is good that you have updated to 1.6.2+
  
Back to top
WWW  
IP Logged
 
ttestestt
Newbies
*
Offline


Posts: 1
Joined: Feb 17th, 2016
Re: "Error:identifier "X" is undefined" for all the arduino functions
Reply #4 - Feb 17th, 2016 at 10:41am
Print Post  
I have some similar errors (compiling just fine) using timer interrupt code for arduino due ide 1.6.7.

void setup {
    pmc_enable_periph_clk(ID_TC8);
    TC_Configure(TC2, channel, TC_CMR_WAVE | TC_CMR_WAVSEL_UP_RC | TC_CMR_TCCLKS_TIMER_CLOCK4);
    TC_SetRC(TC2, channel, timexyz);
    TC_Start(TC2, channel);
    TC2->TC_CHANNEL[channel].TC_IER = TC_IER_CPCS;
    TC2->TC_CHANNEL[channel].TC_IDR = ~TC_IER_CPCS;
NVIC_EnableIRQ(TC8_IRQn);
}

[...]

void TC5_Handler() {
    TC_GetStatus(TC1, 2);
    check_buttons();
}
« Last Edit: Feb 17th, 2016 at 10:42am by ttestestt »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint