tags:

views:

357

answers:

3

I'm getting the following error when trying to compile my program:

calling fdopen: Bad file descriptor

I've read this might be a problem related to including a precompiled header in one of my header files. The file which is causing the error includes the stdio.h header in it so I have access to the FILE type. If I remove this, the error disappears, but then I can't use the FILE type. Does anybody know how I can fix this?

Thanks,

helixed

+1  A: 

Is it possible to give more details about sources?

Sikmir
+3  A: 

Hard to tell without details, but it's indeed most probably due to an out-of-date precompiled header. Remove all .gch files and try again.

This is frequently reported as a bug against GCC, see the bugzilla entry here

FX
A: 

Sorry, I just forgot to include the stdio.h header file. I feel kind of stupid now.

helixed

helixed