Visual studio C++ compiler


A

Arnd Boettcher

How can I invoke the Visual studio C++ compiler by command
line?
Any advices are welcome.
 
Ad

Advertisements

A

Arnd Boettcher

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


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
 
N

Nishant S

Look inside the C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools folder for a file called vsvars32.bat
 
A

Arnd Boettcher

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

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
 
B

Bo Persson

Arnd Boettcher said:
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
(e-mail address removed)
 
C

Carl Daniel [VC++ MVP]

Arnd said:
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
 
Ad

Advertisements

C

Carl Daniel [VC++ MVP]

Arnd said:
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
 
D

Daniel Tomko [MSFT]

--------------------
From: "Carl Daniel [VC++ MVP]" <[email protected]>
Subject: Re: Visual studio C++ compiler
Date: Fri, 15 Aug 2003 06:55:56 -0700
Message-ID: <[email protected]>

Arnd said:
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.
 
D

Daniel Tomko [MSFT]

--------------------
From: "Arnd Boettcher" <[email protected]>
Sender: "Arnd Boettcher" <[email protected]>
Subject: Re: Visual studio C++ compiler


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.
 
Ad

Advertisements

J

Jack Meyhoff

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top