LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Unexpected Token

Hi All,

 

What could be the possible manual errors for the complier to throw build error 'Unecpected Token'?

I am unable to find any syntax error in the code. This error points to one of the header file (.h) which I have referenced in many source files. I have checked for all possible syntactical errors like ending with ; and { , } etc. Please suggest the possible errors.

 

Thanks in advance!

0 Kudos
Message 1 of 2
(2,490 Views)

Hello,

 

Unexpected token would usually be followed by more information such as the syntax token it is referring too. However to directly answer your question, I believe the below stackoverflow answer might clarify this further:

 

http://stackoverflow.com/questions/10333372/errors-within-standard-header-files

 

To add my own, header files can also have code structures such as #ifndef and #endif. You mentioned checking the source files, have you checked the header files also?

 

If you comment out the header file and instances you use it's code, does the code compile?

 

Best regards,

 

Ed

0 Kudos
Message 2 of 2
(2,438 Views)