469,366 Members | 2,286 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,366 developers. It's quick & easy.

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 7433
-----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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

19 posts views Thread by Alf P. Steinbach | last post: by
5 posts views Thread by Anton Noll | last post: by
65 posts views Thread by xuanbai98 | last post: by
26 posts views Thread by Bruno Jouhier [MVP] | last post: by
5 posts views Thread by Daniele | last post: by
18 posts views Thread by Brandon Bray [MSFT] | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.