01-18-2017 12:21 AM
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!
01-21-2017 09:35 AM
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