Error in stdint.h

Oct 24, 2016 at 6:17am
I include stdint.h in my header file, it shows error which says " , expected ".
What is the issue? Please suggest me.
Oct 24, 2016 at 6:22am
Can you post the code?

From what I have now I can make an assumption that you meant to put a period instead of a comma in the include?

Try #include <stdint.h>
Oct 24, 2016 at 6:33am
I have included the file stdint.h.
I'm getting error in stdint.h file.
Oct 24, 2016 at 7:36am
it shows error which says " , expected ".

How can you tell this is related to that header file.
Please post the exact text of the error message in full.
Oct 24, 2016 at 9:55am
the error is
..\..\borlandc\include\stdint.h 516: , expected
Oct 24, 2016 at 10:26am
Ok, what happens if you try to compile the following:
1
2
3
4
5
6
#include <stdint.h>

int main()
{

}

Does it still give the same error message? If not, try to find what is the minimum code required to generate the error.

[also the Borland compilers are very old and generally not recommended - but that's a separate topic].
Oct 24, 2016 at 11:15am
Yes, it still shows me the same error.
Oct 24, 2016 at 12:48pm
Thanks for the reply.

In that case it looks like a problem with the compiler itself. A usual suggestion might be to try to re-install the compiler.

However as mentioned, the Borland compilers are outdated and you'd be better switching to something more up to date - unless for some reason (e.g. school or college specified) you must use a particular compiler.
Topic archived. No new replies allowed.