Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
"Error:identifier "X" is undefined" for all the arduino functions (Read 7259 times)
Ward
Newbies
*
Offline



Posts: 4
"Error:identifier "X" is undefined" for all the arduino functions
Jun 25th, 2015 at 10:39pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10473
United Kingdom
Re: "Error:identifier "X" is undefined" for all the arduino functions
Reply #1 - Jun 25th, 2015 at 11:03pm
 
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
Re: "Error:identifier "X" is undefined" for all the arduino functions
Reply #2 - Jun 25th, 2015 at 11:36pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10473
United Kingdom
Re: "Error:identifier "X" is undefined" for all the arduino functions
Reply #3 - Jun 26th, 2015 at 12:40pm
 
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
Re: "Error:identifier "X" is undefined" for all the arduino functions
Reply #4 - Feb 17th, 2016 at 10:41am
 
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();
}
Back to top
« Last Edit: Feb 17th, 2016 at 10:42am by ttestestt »  
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print