LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax errors in stdlib.h

When i run a very long program that requires stdlib.h, i get syntax errors that basically state that identifiers are found when a ';' is expected. When i try to run a simpler program that also requires stdlib.h, there are no problems. Could some of the include files be interfering with each other? I really dont have any idea what is causing this.
0 Kudos
Message 1 of 3
(3,224 Views)
As one who has recently started writing in 'C', I can identify with this problem! The answer is that you have omitted a semi-colon on a line prior to the point at which the error is indicated. The compiler has continued past the point where you expected the previous line to terminate and is trying to add the next line to it as one long statement, and naturally, getting perplexed.
Having written in hpl, RMB, Visual Basic etc. for many years I keep forgetting to put a semi-colon at the end of my C code lines, and it gets very irritating.
Good Luck!
0 Kudos
Message 2 of 3
(3,224 Views)
This error is seen in any C/C++ development environment. The most likely cause is definitely a missing semicolon.

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 3 of 3
(3,224 Views)