编译器标志 [英] Compiler flags

查看:129
本文介绍了编译器标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能指出我的网站列出了

Linux c ++编译器的编译器标志。是的,我知道它被称为c ++,但我用它来b
编译.c文件。

Can someone point me to a website that lists the compiler flags for the
Linux c++ compiler. Yes, I know it''s called c++ but I am using it to
compile .c files.

推荐答案



spasmous写道:

spasmous wrote:

有人能指出我的网站列出了
$的编译器标志b $ b Linux c ++编译器。是的,我知道它叫做c ++,但是我用它来编译.c $。
编译.c文件。
Can someone point me to a website that lists the compiler flags for the
Linux c++ compiler. Yes, I know it''s called c++ but I am using it to
compile .c files.



有一个名为Google的小伙伴可以通过
http://www.google.com - 他知道所有这些事情。

There''s a chap called Google who can be contacted at
http://www.google.com - he knows all about that sort of thing.


J. J. Farrell说:
J. J. Farrell said:

>

spasmous写道:
>
spasmous wrote:

>有人能指出我的网站列出了Linux c ++编译器的编译器标志。是的,我知道它叫做c ++,但我用它来编译.c文件。
>Can someone point me to a website that lists the compiler flags for the
Linux c++ compiler. Yes, I know it''s called c++ but I am using it to
compile .c files.



有一个叫谷歌的小伙伴可以通过
http://www.google.com - 他知道所有这些事情。


There''s a chap called Google who can be contacted at
http://www.google.com - he knows all about that sort of thing.



这就像声称黄页先生知道如何清洁所有关于b $ b $排水,烤面包,开出租车和问题护照。


谷歌是一个搜索引擎,而不是一个神谕。它对Linux,C ++或编译器标志没有任何了解。事实上,它只知道在哪些网站上出现的b / b $ b字。一位聪明的Google员工清楚地意识到,网上有大量的错误信息,谷歌无法合理地承担责任。警告冲浪者。


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上面的域名(但显然放弃了www)

That''s like claiming that Mr Yellow Pages knows all about how to clean
drains, bake bread, drive taxis, and issue passports.

Google is a search engine, not an oracle. It doesn''t know anything about
Linux, C++, or compiler flags. In fact, it knows little more than which
words appear on which Web sites. An intelligent Googler is well aware that
there is an awful lot of misinformation on the Web, for which Google cannot
reasonably be held responsible. Caveat surfer.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)


" spasmous" < sp ****** @ gmail.comwrites:
"spasmous" <sp******@gmail.comwrites:

有人能指出我的网站列出了
$ b的编译器标志$ b Linux c ++编译器。是的,我知道它叫做c ++,但是我用它来编译.c $。
编译.c文件。
Can someone point me to a website that lists the compiler flags for the
Linux c++ compiler. Yes, I know it''s called c++ but I am using it to
compile .c files.



< OT>

Linux上通常的默认编译器是gcc(它实际上是一个集合
$ b多种语言的编译器$ b,共享后端)。有一个名为g ++的

命令它将它作为C编译器调用。通常cc

和c ++。安装为gcc的别名和g ++分别。


如果要编译C代码,请使用C编译器:gcc和gcc。或者cc,

不是g ++或c ++。


所有这些都在gcc中解释文档,您可以通过

输入" info gcc"来查看或通过谷歌搜索gcc文档。

< / OT>


如果您对gcc有任何疑问(那些不是'没有通过

文档回答,请尝试gnu.gcc.help。如果你对Linux有疑问,可以试试很多Linux新闻组中的一个,或者也许是comp.unix.programmer。

如果你对C语言本身有疑问,这个是正确的

的地方。


-

Keith Thompson(The_Other_Keith) ks *** @ mib.org < http://www.ghoti.net/~kst>

圣地亚哥超级计算机中心< *< ; http://users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。

<OT>
The usual default compiler on Linux is gcc (it''s actually a collection
of compilers for several languages, with a shared backend). There''s a
command called "g++" that invokes it as a C compiler. Typically "cc"
and "c++" are installed as aliases for "gcc" and "g++", respectively.

If you want to compile C code, use a C compiler: either "gcc" or "cc",
not "g++", or "c++".

All this is explained in gcc documentation, which you can see by
typing "info gcc" or by doing a Google search for "gcc documentation".
</OT>

If you have any more questions about gcc (that aren''t answered by the
documentation), try gnu.gcc.help. If you have questions about Linux,
try one of the many Linux newsgroups, or perhaps comp.unix.programmer.
If you have questions about the C language itself, this is the right
place.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.


这篇关于编译器标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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