|  | Commandline compiler for windows? |  | |
| | | rufus |  |
| Posted: Sun Jul 13, 2008 5:53 am Post subject: Commandline compiler for windows? |  |
Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line? |
| |
| | | jacob navia |  |
| Posted: Sun Jul 13, 2008 6:00 am Post subject: Re: Commandline compiler for windows? |  |
rufus wrote:
| Quote: | Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line?
|
All of them can be run from the command line
o MSVC. In your installation tab there is a visual studio tools item. Open it and choose the command line option. That will open a command shell with all the necesary environment variables alraedy set.
o mingw. Install it, add the binaries directory to your path, then just use it with "gcc options"
o Pelles C: Just install it, go to the installation directory and use the .bat that sets the environment variables
o lcc-win. Just add \lcc\bin to your path and compile with lc <arguments>
-- jacob navia jacob at jacob point remcomp point fr logiciels/informatique LINK |
| |
| | | Richard Heathfield |  |
| Posted: Sun Jul 13, 2008 6:27 am Post subject: Re: Commandline compiler for windows? |  |
rufus said:
| Quote: | Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line?
|
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 |
| |
| | | santosh |  |
| Posted: Sun Jul 13, 2008 6:54 am Post subject: Re: Commandline compiler for windows? |  |
rufus wrote:
| Quote: | Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line?
|
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. |
| |
| | | Richar |  |
| Posted: Sun Jul 13, 2008 8:46 am Post subject: Re: Commandline compiler for windows? |  |
Richard Heathfield <rjh@see.sig.invalid> writes:
| Quote: | rufus said:
Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line?
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.
|
You forgot to mention lcc-win. Available free for home use. |
| |
| | | jacob navia |  |
| Posted: Sun Jul 13, 2008 10:11 am Post subject: Re: Commandline compiler for windows? |  |
Richard wrote:
| Quote: | Richard Heathfield <rjh@see.sig.invalid> writes:
rufus said:
Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line? 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.
You forgot to mention lcc-win. Available free for home use.
|
Yeah, bad memory this heathfield...
Thanks for remind him of lcc-win
:-)
-- jacob navia jacob at jacob point remcomp point fr logiciels/informatique LINK |
| |
| | | Joachim Schmitz |  |
| Posted: Sun Jul 13, 2008 10:26 am Post subject: Re: Commandline compiler for windows? |  |
jacob navia wrote:
| Quote: | Richard wrote: Richard Heathfield <rjh@see.sig.invalid> writes:
rufus said:
Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line? 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.
You forgot to mention lcc-win. Available free for home use.
Yeah, bad memory this heathfield...
|
As long as lcc-win doesn't fully conform to either the C89- or C99-Standard, he doesn't regard it a C-compiler, or did that slip your memory? ;-)
Bye, Jojo |
| |
| | | jacob navia |  |
| Posted: Sun Jul 13, 2008 10:41 am Post subject: Re: Commandline compiler for windows? |  |
Joachim Schmitz wrote:
| Quote: | jacob navia wrote: Richard wrote: Richard Heathfield <rjh@see.sig.invalid> writes:
rufus said:
Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line? 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. You forgot to mention lcc-win. Available free for home use.
Yeah, bad memory this heathfield...
As long as lcc-win doesn't fully conform to either the C89- or C99-Standard, he doesn't regard it a C-compiler, or did that slip your memory? ;-)
|
Bravo!
I think you have earned some points here. Soon you will be a member of the regulars clique!
Just keep the good work
-- jacob navia jacob at jacob point remcomp point fr logiciels/informatique LINK |
| |
| | | Richard Heathfield |  |
| Posted: Sun Jul 13, 2008 10:42 am Post subject: Re: Commandline compiler for windows? |  |
| |  | |
jacob navia said:
| Quote: | Richard wrote: Richard Heathfield <rjh@see.sig.invalid> writes:
rufus said:
Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line? 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.
You forgot to mention lcc-win. Available free for home use.
Yeah, bad memory this heathfield...
|
The troll is mistaken (as usual), and so are you (as usual). I didn't "forget" to mention lcc-win. The OP asked for command-line-driven C compilers. As far as I'm aware, lcc-win doesn't claim conformance to either C90 or C99, so how can it be called a C compiler?
-- 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 |
| |
| | | jacob navia |  |
| Posted: Sun Jul 13, 2008 10:45 am Post subject: Re: Commandline compiler for windows? |  |
| |  | |
Richard Heathfield wrote:
| Quote: | jacob navia said:
Richard wrote: Richard Heathfield <rjh@see.sig.invalid> writes:
rufus said:
Is there a C-compiler (and for that matter C++ compiler) for windows that can be run from the commmand line? 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. You forgot to mention lcc-win. Available free for home use.
Yeah, bad memory this heathfield...
The troll is mistaken (as usual), and so are you (as usual). I didn't "forget" to mention lcc-win. The OP asked for command-line-driven C compilers. As far as I'm aware, lcc-win doesn't claim conformance to either C90 or C99, so how can it be called a C compiler?
|
You are lying, as always.
-- jacob navia jacob at jacob point remcomp point fr logiciels/informatique LINK |
| |
|
|