Fdopen call: invalid file descriptor

When trying to compile my program, the following error occurs:

calling fdopen: Bad file descriptor

I read that this could be a problem with including a precompiled header in one of my header files. The file causing the error includes the stdio.h header, so I have access to the FILE type. If I remove this, the error will disappear, but then I cannot use the FILE type. Does anyone know how I can fix this?

+5
source share
2 answers

Sorry, I just forgot to include the stdio.h header file. Now I feel stupid.

0
source

, - . .gch .

GCC, . bugzilla

+6

All Articles