Xcode在OSX 10.9上安装 - clang:error:没有输入文件 [英] Xcode install on OSX 10.9 - clang: error: no input files

查看:302
本文介绍了Xcode在OSX 10.9上安装 - clang:error:没有输入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将OS X 10.9 Mavericks安装XCode Command Line Tools的过程



我安装成功XCode:

  $ xcode-select -p 
/ Library / Developer / CommandLineTools

但是,当我输入 $ clang $ gcc

  clang:error:no input files 


解决方案

如果你只是键入命令没有任何输入文件,那么作为注释,编译器报告一个准确的错误消息。



但是如果你有一个现有的项目,那么你可以看到同样的 clang:error:no input files >





OP用户2925321 意见


错误是我通过步骤来配置ruby,并被指向另一个页面上的指令,刚刚声明检查 $ gcc 而不是 $ gcc --version

显然是新的编码,试图了解更多。


I'm in the process of installing XCode Command Line Tools onto OSX 10.9 Mavericks

I did a successful install XCode:

$ xcode-select -p 
/Library/Developer/CommandLineTools 

However when I type in either $ clang or $ gcc it returns:

clang: error: no input files 

解决方案

If you just type the command without any input files, then as commented, the compiler reports an accurate error message.

But if you have an existing project, then you can see that same "clang: error: no input files" message when:


The OP user2925321 comments:

The error was that I was running through steps to configure ruby and was directed to instructions on another page that just stated to check for $ gcc instead of $ gcc --version.
Obviously new to coding, trying to learn more.

这篇关于Xcode在OSX 10.9上安装 - clang:error:没有输入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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