Error in stdint.h file

Thread Starter

bp04

Joined Oct 20, 2016
3
I include stdint.h in my header file, it shows error which says " , expected ".
What is the issue? Please suggest me.
 

Attachments

ErnieM

Joined Apr 24, 2011
8,377
Can you post and number the lines in stdint.h, a few before and a few after lines 516 and 555 so we can see what is going on?

An error is not always on the line flagged, sometimes the line above will cause an error below.

There may be some corruption of your copy, or you may have used a symbol it also uses.
 

Thread Starter

bp04

Joined Oct 20, 2016
3
The line which consists of
"typedef uint_least16_t uint_fast16_t; "
is line 516 so you can see the lines above it and below it too...
 

MrSoftware

Joined Oct 29, 2013
2,196
The actual error is often far away from the line where the error is reported. The error can even be in a different file. This is especially true for syntax errors (missing a quote, comma, etc..), and sometimes if you have undefined types. I can't help without more info, but what you can try is removing code (comment it out) until you're left with the minimum amount of code necessary to reproduce the error. Maybe just including the header with no other code will reproduce the error? That will help you narrow down the problem.
 
Top