cgccfdopen

calling fdopen: Bad file descriptor


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?


Solution

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