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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With