开发者

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 FIL开发者_JS百科E 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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜