主题 : gcc编译出现问题,求大牛们解决一下 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 96852
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
综合积分: 12 分
注册时间: 2013-10-02
最后登录: 2014-09-27
楼主  发表于: 2013-10-14 15:34

 gcc编译出现问题,求大牛们解决一下

gcc hello.c  -o hello
却出现cannot creat temporary file in /tmp/ :无效的参数
请问是怎么回事啊?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-10-14 15:47
你的Linux上有strace吗?有的话可以试试用命令

$strace -o gcc.txt -f gcc hello.c -o hello

把生成的gcc.txt附上来看看
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 96852
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
综合积分: 12 分
注册时间: 2013-10-02
最后登录: 2014-09-27
2楼  发表于: 2013-10-17 19:37

 回 1楼(kasim) 的帖子

谢谢您,后来我把fedora重装了就可以编译了。