新手问题f2c编译问题:cc1plus错误:/ include:不是目录这是什么意思? [英] Newbie question f2c compilation problem: cc1plus error: /include: not a directory What does this mean?

查看:790
本文介绍了新手问题f2c编译问题:cc1plus错误:/ include:不是目录这是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac(OS X,10.6.5)上编译代码时遇到问题。



代码使用f2c。



我不明白错误,真的会感谢任何帮助。我想知道它是否可能是我的编译器的问题,只是为了万一我重新安装Xcode,它安装了一个新的g ++编译器。



以下是错误:

  cc1plus:错误:/ include:不是目录
cc1plus:错误:/ lib:不是目录
make:*** [Task1.o]错误1



谢谢!

解决方案

在安装gcc编译器时出错。它似乎可能正在寻找包括在 / usr / include ,但它缺少目录的第一部分。尝试执行:

  $ gcc -v 

默认情况下查看您使用的gcc目录。在我的例子中,我看到

   -  prefix = / usr 

作为选项之一。


I am having problems with compiling code on my Mac (OS X, 10.6.5).

The code uses f2c.

I don't understand the error, and would really appreciate any help. I wondered if it might be a problem with my compiler, and just in case I reinstalled Xcode, which installs a new g++ compiler. But I still get the same error.

Here's the error:

cc1plus: error: /include: not a directory
cc1plus: error: /lib: not a directory
make: *** [Task1.o] Error 1

Thanks!

解决方案

This may be an error in the installation of your gcc compiler. It seems it may be looking for includes in /usr/include, but it is missing the first part of the directory. Try executing:

$ gcc -v

to see what directories the gcc you're using has by default. In my case, I see

--prefix=/usr

as one of the options.

这篇关于新手问题f2c编译问题:cc1plus错误:/ include:不是目录这是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆