473,503 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual studio C++ compiler

How can I invoke the Visual studio C++ compiler by command
line?
Any advices are welcome.
Nov 16 '05 #1
9 7763
-----Original Message-----
Arnd Boettcher wrote:
How can I invoke the Visual studio C++ compiler by command line?
cl

But you have to set up the environment with

\Programme\Microsoft Visual Studio .NET (2003)\Vc7

\bin\vcvars32.bat
--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/useritems/leakfinder.asp
.

Thank you very much.
Unfortunately, there's no such bat-file in
C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\bin....
What can I do now? Shall I reinstall the framework and sdk?
Cheers
Arnd
Nov 16 '05 #2
Look inside the C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools folder for a file called vsvars32.bat

--
Regards,
Nish [VC++ MVP]

"Arnd Boettcher" <re******@hotmail.com> wrote in message
news:07****************************@phx.gbl...
-----Original Message-----
Arnd Boettcher wrote:
How can I invoke the Visual studio C++ compiler by command line?


cl

But you have to set up the environment with

\Programme\Microsoft Visual Studio .NET (2003)\Vc7

\bin\vcvars32.bat

--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/useritems/leakfinder.asp
.

Thank you very much.
Unfortunately, there's no such bat-file in
C:\Programme\Microsoft Visual Studio .NET 2003\Vc7\bin....
What can I do now? Shall I reinstall the framework and sdk?
Cheers
Arnd

Nov 16 '05 #3
-----Original Message-----
-----Original Message-----
Look inside the C:\Program Files\Microsoft Visual

Studio .NET
2003\Common7\Tools folder for a file called vsvars32.bat

--
Regards,
Nish [VC++ MVP]

Thank you. It's strange, but true: On the whole HDD there
are neither vcvars32.bat nor vsvars32.bat. I have
reinstalled framework and sdk but this did not change
anything. Taking the full path "C:\Programme\Microsoft
Visual Studio.NET\Vc7\bin\cl.exe" results in an error
message that the file mspdb71.dll cannot be find but this
file exists..
Cheers
Arnd

In the meantime I've added a copy of mspdb71.dll to the
folder C:\Programme\Microsoft
Visual Studio.NET\Vc7\bin and this resolved the issue
described above. The main problem is still unsolved,
however.
Arnd
Nov 16 '05 #4

"Arnd Boettcher" <re******@hotmail.com> skrev i meddelandet
news:03****************************@phx.gbl...
-----Original Message-----
-----Original Message-----
Look inside the C:\Program Files\Microsoft VisualStudio .NET
2003\Common7\Tools folder for a file called vsvars32.bat

--
Regards,
Nish [VC++ MVP]

Thank you. It's strange, but true: On the whole HDD there
are neither vcvars32.bat nor vsvars32.bat. I have
reinstalled framework and sdk but this did not change
anything. Taking the full path "C:\Programme\Microsoft
Visual Studio.NET\Vc7\bin\cl.exe" results in an error
message that the file mspdb71.dll cannot be find but this
file exists..
Cheers
Arnd

In the meantime I've added a copy of mspdb71.dll to the
folder C:\Programme\Microsoft
Visual Studio.NET\Vc7\bin and this resolved the issue
described above.


That's generally NOT a good idea. Much better would be to add the
proper directory to the PATH setting.

The main problem is still unsolved,
however.


There is nothing magical about this BAT-file, it just sets or adds
some values for the PATH, INCLUDE, and LIB environment variables.

You can take a look at the one I found on my machine. If you want to
use it, you might have to change the "C:\Program\" part of osme paths
to the more common "C:\Program Files\", or something else depending on
your localized Windows (even paths are translated!).
Bo Persson
bo**@telia.com

Nov 16 '05 #5
Arnd Boettcher wrote:
Hi Daniel, thank you very much for your tip concerning

the icon. That's working just in that way I 've looked for.
As for the libraries: Indeed, I have no full Visual Studio
but only the .NET SDK. Nevertheless, the associated
description says:
"The Microsoft .NET Framework 1.1 Software Development Kit
(SDK) includes the .NET Framework 1.1, as well as
everything you need to write, build, test, and deploy
applications using the .NET Framework 1.1, including
documentation, samples, and command-line tools and
compilers....." When I'm understanding this right (I am no
native English speaker) there should not be any problem in
compiling simple C++-source code. On the other side there
was not any error message when I installed the SDK.
Cheers,
Arnd


C++ code using iostreams does not use the .NET framework - it's using the
C++ runtime library, which is not included with the .NET Framework SDK.

-cd
Nov 16 '05 #6
Arnd Boettcher wrote:
-----Original Message-----


C++ code using iostreams does not use the .NET framework -

it's using the
C++ runtime library, which is not included with the .NET Framework
SDK.

-cd

Thank you. Where can I get an information about missing
functionality in .NET Framework SDK? As I've seen a crt-
library is included with Microsoft SDK I've installed on
my computer, too. Could it be used in any way?
a.b.


AFIAK, if you want to use the C++ standard library, MFC or ATL, you need to
buy Visual Studio.

-cd
Nov 16 '05 #7

--------------------
From: "Carl Daniel [VC++ MVP]" <cp******@nospam.mvps.org>
Subject: Re: Visual studio C++ compiler
Date: Fri, 15 Aug 2003 06:55:56 -0700
Message-ID: <eA**************@TK2MSFTNGP09.phx.gbl>

Arnd Boettcher wrote:
-----Original Message-----


C++ code using iostreams does not use the .NET framework -

it's using the
C++ runtime library, which is not included with the .NET Framework
SDK.

-cd

Thank you. Where can I get an information about missing
functionality in .NET Framework SDK? As I've seen a crt-
library is included with Microsoft SDK I've installed on
my computer, too. Could it be used in any way?
a.b.


AFIAK, if you want to use the C++ standard library, MFC or ATL, you need to
buy Visual Studio.

-cd


That's correct. The C++ compiler included with the .NET Framework SDK is
only for developing .NET applications that use the Framework's Base Class
Library, not any native C++ libraries.

--
Daniel Tomko, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.

Nov 16 '05 #8

--------------------
From: "Arnd Boettcher" <re******@hotmail.com>
Sender: "Arnd Boettcher" <re******@hotmail.com>
Subject: Re: Visual studio C++ compiler
Message-ID: <08****************************@phx.gbl>

-----Original Message-----


C++ code using iostreams does not use the .NET framework -

it's using the
C++ runtime library, which is not included with the .NET

Framework SDK.

-cd

Thank you. Where can I get an information about missing
functionality in .NET Framework SDK? As I've seen a crt-
library is included with Microsoft SDK I've installed on
my computer, too. Could it be used in any way?
a.b.


I should add that there really isn't anything missing. It is helpful to
consider Managed C++ a different language from normal C++. It introduces
new concepts that are specific to the .NET runtime and has it's own
libraries. Those libraries are different from the standard C++ libraries,
but most of the same functionality is there, without templates. Future
versions will have a template-like feature called generics. With the full
Visual C++ compiler it is possible to create applications that use both
standard C++ and managed C++ constructs and libraries, but not in the .NET
Framework SDK version.

--
Daniel Tomko, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.

Nov 16 '05 #9
Think of MC++ as a superset of C++ (with managed extensions), like Objective
C is a superset of C and VB.NET is a different lanugage from VB6.

This posting is provided AS IS with no warranties, and confers no rights or
dancing girls and flying cars.

"Daniel Tomko [MSFT]" <dt****@online.microsoft.com> wrote in message
news:kK**************@cpmsftngxa06.phx.gbl...

--------------------
From: "Arnd Boettcher" <re******@hotmail.com>
Sender: "Arnd Boettcher" <re******@hotmail.com>
Subject: Re: Visual studio C++ compiler
Message-ID: <08****************************@phx.gbl>

-----Original Message-----


C++ code using iostreams does not use the .NET framework -

it's using the
C++ runtime library, which is not included with the .NET

Framework SDK.

-cd

Thank you. Where can I get an information about missing
functionality in .NET Framework SDK? As I've seen a crt-
library is included with Microsoft SDK I've installed on
my computer, too. Could it be used in any way?
a.b.


I should add that there really isn't anything missing. It is helpful to
consider Managed C++ a different language from normal C++. It introduces
new concepts that are specific to the .NET runtime and has it's own
libraries. Those libraries are different from the standard C++ libraries,
but most of the same functionality is there, without templates. Future
versions will have a template-like feature called generics. With the full
Visual C++ compiler it is possible to create applications that use both
standard C++ and managed C++ constructs and libraries, but not in the .NET
Framework SDK version.

--
Daniel Tomko, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights.

Nov 16 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
6151
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
1
3890
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
19
3528
by: Alf P. Steinbach | last post by:
// As usual the error message directs one to the report the bug. // // And as usual there is absolutely no way to do so without paying for // the privilege... // // Or using three or four hours...
5
3727
by: Anton Noll | last post by:
We are using Visual Studio 2003.NET (C++) for the development of our software in the fields digital signal processing and numerical acoustics. One of our programs was working correctly if we are...
65
18962
by: xuanbai98 | last post by:
I want to know the current support status of c99 on Microsoft Visual Studio. Anyone know whether Microsoft has any plan to support c99 on Visual Studio? Thanks, Xuan
26
10820
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
5
1598
by: Daniele | last post by:
Hi, how is it possible to create a project with a specific template, compile it and close it? All with a c# script. Thanks, Daniele
18
3642
by: Brandon Bray [MSFT] | last post by:
Shortly, the Visual C++ Tools Refresh will be available on the MSDN Visual C++ devcenter. You will need to have installed the Visual Studio 2005 Beta first. <http://msdn.microsoft.com/visualc> I...
4
2142
by: sqlguy | last post by:
Why do we have to contact MS for a problem that has been with this compiler from at least the beta of VS 20005. I am so sick and tired of the 30 - 40 clicks it takes to dismiss VS when there is a...
0
7292
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
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...
0
7287
Oralloy
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,...
0
7348
jinu1996
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...
1
7006
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...
0
5592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.