用于Windows的命令行编译器? [英] Commandline compiler for windows?

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

问题描述

是否有用于Windows的C编译器(以及C ++编译器)

可以从命令行运行?

Is there a C-compiler (and for that matter C++ compiler) for windows that
can be run from the commmand line?

推荐答案

rufus写道:
rufus wrote:

是否有用于Windows的C编译器(以及C ++编译器)

可以从命令行运行吗?

Is there a C-compiler (and for that matter C++ compiler) for windows that
can be run from the commmand line?



所有这些都可以从命令行运行

$ b $博MSVC。在您的安装选项卡中有一个visual studio

工具项。打开它并选择命令行选项。那个

会打开一个包含所有必要环境变量的命令shell

alraedy set。


o mingw。安装它,将二进制文件目录添加到您的路径,然后

只需将它与gcc选项一起使用


o Pelles C:只需安装它,转到安装目录和

使用.bat设置环境变量


o lcc-win。只需将\ clcc \ bin添加到您的路径并使用

lc< arguments>进行编译。

-

jacob navia
jacob at jacob point remcomp point fr

logiciels / informatique
http://www.cs.virginia.edu/~lcc-win32


rufus说:
rufus said:

是否有一个用于Windows的C编译器(以及C ++编译器)

可以从命令行运行?
Is there a C-compiler (and for that matter C++ compiler) for windows that
can be run from the commmand line?



是的。 Borland C(和它的小兄弟Turbo C),微软C,太平洋C,

gcc,Digital Mars C,Pelles C(毫无疑问还有更多)都可以运行
$ b来自命令行的$ b。你当前的C编译器几乎肯定能做到。

查看文档。


-

Richard Heathfield< http: //www.cpax.org.uk>

电子邮件:-http:// www。 + rjh @

谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>

Usenet是一个奇怪的放置" - dmr 1999年7月29日

Yes. Borland C (and its little brother Turbo C), Microsoft C, Pacific C,
gcc, Digital Mars C, Pelles C (and no doubt plenty more) can all be run
from the command line. Your current C compiler can almost certainly do it.
Check the documentation.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999


rufus写道:
rufus wrote:

是否有C编译器(就此而言) Windows的C ++编译器

可以从命令行运行吗?
Is there a C-compiler (and for that matter C++ compiler) for windows
that can be run from the commmand line?



据我所知,IDE附带的所有编译器也可以从命令行运行

。这包括MSVC,英特尔,gcc,Borland,lcc-win,

实际命令是什么来调用命令行编译器并绕过IDE的所有内容。


但是为了让你起步并运行这里是可执行文件的名称
$ b你需要调用$ b来从命令行进行编译。


MSVC - cl.exe

gcc - gcc(Windows上的gcc.exe)

Borland - bcc.exe(和tcc.exe用于他们的Turbo C品牌产品)

lcc-win32 - lcc.exe

英特尔 - icc(或icc.exe)


但是,阅读编译器和标准库

附带的文档是无可替代的。

As far as I know all compilers that come with IDEs can also be run from
the command line. This includes MSVC, Intel, gcc, Borland, lcc-win,
PellesC etc. Your compiler''s documentation will tell you what the
actual command is to invoke the command line compiler and bypass all
the IDE stuff.

But just to get you up and running here are the names of executables
that you need to invoke for compiling from the command line.

MSVC - cl.exe
gcc - gcc (gcc.exe on Windows)
Borland - bcc.exe (and tcc.exe for their "Turbo C" branded products)
lcc-win32 - lcc.exe
Intel - icc (or icc.exe)

But there is no substitute for reading the documentation that comes with
your compiler and Standard library.


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

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