LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get a "undeclared identifier" compiler error when the ID is declared?

I am attempting to execute GetCtrlVal (panel, panel_Freq_VCO, &fvco); Even though "panel_Freq_VCO" is in the header file, I keep getting a "undeclared identifier" compiler error. Why?
0 Kudos
Message 1 of 3
(6,013 Views)
Did you double check the spelling (including capitalization) of panel_Freq_VCO?
Is the header file #included in the source file?
Do you use panel_Freq_VCO elsewhere in the program without problem?
Do you want to show us your code (.c and .h)?
0 Kudos
Message 2 of 3
(6,012 Views)
The problem was with the header file. I had two *.h files and the code was pointing to the wrong one. Once I corrected this, the program compiles without error. Thank you for pointing me in the right direction 🙂
0 Kudos
Message 3 of 3
(6,012 Views)