开发者

gcc error: Can't create precompiled header

I have some useful typedefs on a header file called utypes.h. I have decided to use make and haven't found a way to compile it since then.

When I execute gcc -Wall -c utypes.h to generate the .o object of utypes I get the following error:

开发者_如何转开发
"utypes.h:1 fatal error: can't create precomiled header types.h.gch: Permission Denied (EACESS)
Compilation terminated.

What am I doing wrong here? Thanks.


You don't have write access to the directory where you are trying to put types.h.gch, or you have a pre-existing read-only copy. On Linux you can use strace to get the details.


just compile your stdc++.h in cmd with administrator rights. Run CMD as Administrator and then go to path of stdc++.h and then compile

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜