1

我在名为 utypes.h 的头文件中有一些有用的 typedef。我决定使用 make 并且从那时起还没有找到编译它的方法。

当我执行gcc -Wall -c utypes.h生成 utypes 的 .o 对象时,出现以下错误:

"utypes.h:1 fatal error: can't create precomiled header types.h.gch: Permission Denied (EACESS)
Compilation terminated.

我在这里做错了什么?谢谢。

4

2 回答 2

2

您对尝试放置 types.h.gch 的目录没有写入权限,或者您有一个预先存在的只读副本。在 Linux 上,您可以使用 strace 获取详细信息。

于 2010-03-21T22:24:00.133 回答
0

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

于 2021-05-11T05:55:49.210 回答