Is there a C++ compiler for windows that can be run from the commmandline? I
have only be able to find MS Visual Studio but its rather overkill since I
also like to just use notepad for my code. 13 4208
rufus wrote:
Is there a C++ compiler for windows that can be run from the commmandline? I
have only be able to find MS Visual Studio but its rather overkill since I
also like to just use notepad for my code.
Well,
all of them can be run from command line.
For MS VC, you need to start "Visual Studio 20XX Command prompt" and
after that issue CL command. Alternative would be to start cmd.exe, and
after that execute vcvars32.bat, located in BIN directory of VC
distribution.
On Jul 13, 9:55 am, "rufus" <as...@asd.comw rote:
Is there a C++ compiler for windows that can be run from the commmandline? I
have only be able to find MS Visual Studio but its rather overkill sinceI
also like to just use notepad for my code.
VC++ works fine from the command line. As far as I know, in
fact, it can only be invoked from the command line---Visual
Studios generates a command line to invoke it.
If you've installed Visual C++ correctly, there should be an
entry in your program menus for "Visual Studio 2008 Command
Prompt", or something similar. This will start a console window
with the environment all set up. If you want to use a different
shell (highly recommended), then you'll have to copy the
necessary components of the path into your system path (or the
path of your shell), and define the environment variables LIB
and INCLUDE with the values they have in this window. (I've
used VC++ from the command line in MSys, CygWin and UWin; I
usually invoke it from a gmake file, however, which also works
fine under Windows. If you do use some of the Unix tool set,
however, you might want to consider moving things around so that
there are no spaces in any of the path names---you can make it
work with spaces, but it's a lot more difficult.)
The actual command is cl. Note that like most other compilers,
you'll need a lot of options for it to be really usable.
--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
On 7月13æ—¥, 下åˆ5æ—¶04分 , James Kanze <james.ka...@gm ail.comwrote:
On Jul 13, 9:55 am, "rufus" <as...@asd.comw rote:
Is there a C++ compiler for windows that can be run from the commmandline? I
have only be able to find Â*MS Visual Studio but its rather overkill since I
also like to just use notepad for my code.
VC++ works fine from the command line. Â*As far as I know, in
fact, it can only be invoked from the command line---Visual
Studios generates a command line to invoke it.
If you've installed Visual C++ correctly, there should be an
entry in your program menus for "Visual Studio 2008 Command
Prompt", or something similar. Â*This will start a console window
with the environment all set up. Â*If you want to use a different
shell (highly recommended), then you'll have to copy the
necessary components of the path into your system path (or the
path of your shell), and define the environment variables LIB
and INCLUDE with the values they have in this window. Â*(I've
used VC++ from the command line in MSys, CygWin and UWin; I
usually invoke it from a gmake file, however, which also works
fine under Windows. Â*If you do use some of the Unix tool set,
however, you might want to consider moving things around so that
there are no spaces in any of the path names---you can make it
work with spaces, but it's a lot more difficult.)
The actual command is cl. Â*Note that like most other compilers,
you'll need a lot of options for it to be really usable.
--
James Kanze (GABI Software) Â* Â* Â* Â* Â* Â* email:james.ka. ..@gmail.com
Conseils en informatique orientée objet/
Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Sure, cl is the compiler command , as well as rc and link.
On the other hand, you can download a Dev-C++,and put the bin
directory
to your system path,then you can use gcc, g++, etc.
"want.to.be.pro fesser" <gu*********@gm ail.comskrev i en meddelelse
news:b7******** *************** ***********@c58 g2000hsc.google groups.com...
On 7?13?, ??5?04?, James Kanze <james.ka...@gm ail.comwrote:
On Jul 13, 9:55 am, "rufus" <as...@asd.comw rote:
Is there a C++ compiler for windows that can be run from the
commmandline? I
have only be able to find MS Visual Studio but its rather overkill since
I
also like to just use notepad for my code.
VC++ works fine from the command line. As far as I know, in
fact, it can only be invoked from the command line---Visual
Studios generates a command line to invoke it.
If you've installed Visual C++ correctly, there should be an
entry in your program menus for "Visual Studio 2008 Command
Prompt", or something similar. This will start a console window
with the environment all set up. If you want to use a different
shell (highly recommended), then you'll have to copy the
necessary components of the path into your system path (or the
path of your shell), and define the environment variables LIB
and INCLUDE with the values they have in this window. (I've
used VC++ from the command line in MSys, CygWin and UWin; I
usually invoke it from a gmake file, however, which also works
fine under Windows. If you do use some of the Unix tool set,
however, you might want to consider moving things around so that
there are no spaces in any of the path names---you can make it
work with spaces, but it's a lot more difficult.)
The actual command is cl. Note that like most other compilers,
you'll need a lot of options for it to be really usable.
--
James Kanze (GABI Software) email:james.ka. ..@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Sure, cl is the compiler command , as well as rc and link.
On the other hand, you can download a Dev-C++,and put the bin
directory
to your system path,then you can use gcc, g++, etc.
But will the executable compiled with a Dev-C++ gcc or g++ compiler be
executable on windows XP?
"Leclerc" <go************ *****@this.inet .hrskrev i en meddelelse
news:g5******** **@sunce.iskon. hr...
rufus wrote:
>Is there a C++ compiler for windows that can be run from the commmandline ? I have only be able to find MS Visual Studio but its rather overkill since I also like to just use notepad for my code.
Well,
all of them can be run from command line.
For MS VC, you need to start "Visual Studio 20XX Command prompt" and after
that issue CL command. Alternative would be to start cmd.exe, and after
that execute vcvars32.bat, located in BIN directory of VC distribution.
Hm this works fine with cmd. But if I try the same with Windows PowerShell
nothing happens when I type "cl.exe", not even an error message.
>
In article <48************ ***********@new s.sunsite.dk>, as***@asd.com
says...
Is there a C++ compiler for windows that can be run from the commmandline? I
have only be able to find MS Visual Studio but its rather overkill since I
also like to just use notepad for my code.
You can still run the compiler with Visual Studio from the command line.
If you prefer something else, there are a few possibilities:
1) Microsoft Platform SDK ( http://tinyurl.com/m3nld)
2) Borland ( http://www.codegear.com/downloads/free/cppbuilder)
3) Digital mars ( http://www.digitalmars.com/download/dmcpp.html)
4) MingW ( http://www.mingw.org/node/19)
5) CygWin ( http://www.cygwin.com/setup.exe)
6) ConceptGCC ( http://www.generic-
programming.org/software/ConceptGCC/download.php)
If you're primarily interested in developing Windows applications and
happen to use C++, MS is probably the best choice -- but otherwise, it's
probably the furthest from conforming with the standard of those listed
here.
If you really wish you were doing your development under Linux, but
happen to be running Windows, CygWin is undoubtedly the best choice --
but otherwise, it's going to be a PITA because it's doing its best to be
BE Linux, despite running under Windows.
If you want to experiment with the latest and greatest language
features, ConceptGCC is almost certainly the best choice -- but
otherwise, it's stupidly slow, allows a lot of code that isn't (yet)
allowed by the standard.
I won't try to go through the strengths and weaknesses of every one, but
you get the general idea...
--
Later,
Jerry.
The universe is a figment of its own imagination.
On Jul 13, 11:21 am, "want.to.be.pro fesser" <guolihui...@gm ail.com>
wrote:
On 7月13æ—¥, 下åˆ5æ—¶04分 , James Kanze <james.ka...@gm ail.comwrote:
On Jul 13, 9:55 am, "rufus" <as...@asd.comw rote:
Is there a C++ compiler for windows that can be run from
the commmandline? I have only be able to find MS Visual
Studio but its rather overkill since I also like to just
use notepad for my code.
VC++ works fine from the command line. As far as I know, in
fact, it can only be invoked from the command line---Visual
Studios generates a command line to invoke it.
If you've installed Visual C++ correctly, there should be an
entry in your program menus for "Visual Studio 2008 Command
Prompt", or something similar. This will start a console window
with the environment all set up. If you want to use a different
shell (highly recommended), then you'll have to copy the
necessary components of the path into your system path (or the
path of your shell), and define the environment variables LIB
and INCLUDE with the values they have in this window. (I've
used VC++ from the command line in MSys, CygWin and UWin; I
usually invoke it from a gmake file, however, which also works
fine under Windows. If you do use some of the Unix tool set,
however, you might want to consider moving things around so that
there are no spaces in any of the path names---you can make it
work with spaces, but it's a lot more difficult.)
The actual command is cl. Note that like most other compilers,
you'll need a lot of options for it to be really usable.
Sure, cl is the compiler command , as well as rc and link.
Never heard of rc, but cl is actually a compiler driver, like
g++ or CC (Sun), or most others. You don't actually invoke
link directly, you do it through cl.
On the other hand, you can download a Dev-C++,and put the bin
directory to your system path,then you can use gcc, g++, etc.
But why? The more or less standard compiler for Windows is
VC++. The only reason I can think of for using g++ under
Windows is portability: you want to use the same sources under
Windows as you did under Linux, without worrying about compiler
idiosyncracies. Whereas I (personally) try to get my code to
compile under as many different compilers as possible.
--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
On Jul 13, 12:10 pm, "rufus" <as...@asd.comw rote:
"want.to.be.pro fesser" <guolihui...@gm ail.comskrev i en
meddelelsenews: b7************* *************** ******@c58g2000 hsc.googlegroup s.com...
On 7?13?, ??5?04?, James Kanze <james.ka...@gm ail.comwrote:
But will the executable compiled with a Dev-C++ gcc or g++
compiler be executable on windows XP?
I'm not sure what Dev-C++ is; I think it's an IDE, like Windows
Studio. But code compiled with g++ under MSys or CygWin on
Windows runs very well under all of the Windows I've tried it
on. (I haven't tried Vista yet, so I don't know. And I've not
tried with some of the older non-professional Windows, either,
before NT technology started being used on the personal systems
as well. But I can state from personal experience that there is
no problem with Windows NT, Windows 2000 or Windows XP.)
--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
On Jul 13, 2:57 pm, Jerry Coffin <jcof...@taeus. comwrote:
In article <4879b4d6$0$902 70$14726...@new s.sunsite.dk>,
as...@asd.com says...
[...]
If you're primarily interested in developing Windows
applications and happen to use C++, MS is probably the best
choice -- but otherwise, it's probably the furthest from
conforming with the standard of those listed here.
Is that really true. The only other compiler on your list that
I've worked with is g++, and I'd rate recent versions of g++ and
VC++ fairly close; VC++ still has a few bugs with regards to
some of the more exotic uses of templates, but their library is
probably still slightly better than that of g++. But both are
to a point where you shouldn't notice the difference unless
you're writing very experimental code.
In the distant past: VC++ 6.0 was significantly more conform
than g++ 2.95.2, but there's no reason to use those versions
today.
If you really wish you were doing your development under
Linux, but happen to be running Windows, CygWin is undoubtedly
the best choice -- but otherwise, it's going to be a PITA
because it's doing its best to be BE Linux, despite running
under Windows.
Which is a PITA, even if you're a Unix freak, like I am. If I
want Linux, I know where to get it, and the cost isn't a
deterrant. There's such a thing as an emulation being too
exact; if I'm working under Windows, it's because I need simple
and direct access to the Windows features, and things like
making me type in /cygdrive/c/... rather than just c:/.. don't
help:-). (The worst in this regard is MSys. If an argument
starts with a '/', and the executable isn't in the MSys
directory, it replaces the '/' with 'c:\msys\...'. Which means
that 'cl /help' provokes a very strange error message about not
being able to find the file 'c:\...\help'.)
--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike Fisher |
last post by:
I'm seeing an error when I try to run/debug a web
service. Although it doesn't happen every time, it does
occur more than half of the times I hit F5. It appears
to be returned by the the JIT compiler as the page is
requested by the browser. The result is that
the "compiler failed with error code 2000". I have
tested the same code on another workstation with VS.NET
and it works fine EVERY time. I'm convinced it's not the
code and I...
|
by: cat_dog_ass |
last post by:
I am used to programming in DOS mode via Borland C++. I would now like
to create programs for the Windows envirinment. Is it absoultely
necessary to use Visual C++ to do this? Are there other tools that can
help me in doing Windows programming via C++? How am I going to create
drop-down menus and allow my programs to interact with the mouse?
Regards,
Icon
|
by: Vlad# |
last post by:
Hi,
I wanted to try out some development for the Windows CE 5.0 platform so
downloaded the SmartPhone SDK from Microsoft and started up a new
project with a blank form. This is virtually a blank project, I will
want to do some networking when I get the program to compile though. I
am using Visual Studio 2005 RTM (Target is set to Windows Mobile 5.0
SmartPhone Emulator)
The build error I get is this:
|
by: Razzie |
last post by:
Hi all,
I was working on a little project, worked fine, but now all of a sudden I
get:
The compiler failed with error code -1073741502
as an error message (when running the site, not building).
I have NO idea what's wrong. I changed some code (only very small, which I
did like 10 times before that in the past 15 minutes) and I can't get it
|
by: keithb |
last post by:
This application works without error in the development environment using
the VS web server. When I publish the site to my IIS 6.0 server, I get this
error at runtime when I open the Change Password page:
Compiler Error Message: CS0030: Cannot convert type
'ASP.admin_changepassword_aspx' to
'System.Web.UI.WebControls.ChangePassword'
Compiler Error Message: CS0030: Cannot convert type
| |
by: Bruce |
last post by:
We suddenly got a mysterious error message on our Windows Server 2003 (SP1)
after rolling out a bug fix on a web services application this morning. The
application compiles and runs fine on the development workstation (from vs
2005 on Windows XP Pro), but when I run "Copy Web Site..." to move the app
out from VS to the server, then all accesses to the web service via a
browser show this error message: "Compiler Error Message: CS0006:...
|
by: bhanupoornakumar |
last post by:
Hi .. when i am setting a website i am getting the following error..
The compiler failed with error code -1073741819.
This is the full error .. u can see below.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: The compiler failed with error code...
|
by: gmsieling |
last post by:
We're getting compiler error CS0006, with increasing frequency. It says that a randomly named DLL was not found. This happens at random intervals when you try to run the application. We're using the webserver that comes with VS to run our web app. VS 2005 SP1 didn't fix this, and the only way I know to get around it is to close VS and delete the temporary ASP.NET files. Is there anything easier we can do?
Server Error in '/' Application....
|
by: Miroslaw Makowiecki |
last post by:
Where can I download Comeau compiler as a trial version?
Thanks in advice.
|
by: kmsandeep17 |
last post by:
when i host my site on go daddy it give error
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: The compiler failed with error code -1073741502.
Detailed Compiler Output:
C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe"...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |