473,692 Members | 2,031 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 7777
-----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\Mic rosoft Visual Studio .NET (2003)\Vc7

\bin\vcvars32.b at
--
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\Mi crosoft 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\To ols folder for a file called vsvars32.bat

--
Regards,
Nish [VC++ MVP]

"Arnd Boettcher" <re******@hotma il.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\Mic rosoft Visual Studio .NET (2003)\Vc7

\bin\vcvars32.b at

--
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\Mi crosoft 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\M icrosoft
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\Mi crosoft
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******@hotma il.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\M icrosoft
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\Mi crosoft
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******@nospa m.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******@hotma il.com>
Sender: "Arnd Boettcher" <re******@hotma il.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
functionalit y 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******** ******@cpmsftng xa06.phx.gbl...

--------------------
From: "Arnd Boettcher" <re******@hotma il.com>
Sender: "Arnd Boettcher" <re******@hotma il.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
functionalit y 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
6171
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 itself. Everything you need is available at no costs (except download hassle and installation time). Once your system is set up properly its just a matter of running 'python setup.py build'. No longer waiting for someone else to build binaries and a...
1
3912
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 make it easier for someone (i.e. a Microsoft person) to digest the information and respond to it. I am a C++ and Java developer with over 3 years of industry experience. I've written low level C++ code, in addition to web clients that use web...
19
3549
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 to find the _current_ reporting page... #include <vector> #include <iostream>
5
3740
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 using the Debug-Version of the program, but it fails (or leads to false results) if we are using the Release-Version. After a long debugging session we found out, that our program was working correctly, but the floating point processing...
65
19024
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
10857
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 compiles the same solution much faster (about 10 seconds for the first project). My home computer is only marginally faster than the one I have at the office (P4 2.53 vs. P4 2.4, same amount of RAM). On the slow machine, the CPU usage is very low,...
5
1614
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
3660
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 have been talking about this a lot over the last two months. All of the features that are missing in the compiler for Beta 1 are now available in the tools refresh. These refreshes are builds out of live development branch and thus are not...
4
2159
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 problem. Can they not just post the fix. I see no reason to contact MS since I have most likely sent about 1500 dumps to them and I would think this would get their attention.
0
7324
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 beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results. Visual Studio automatically creates a number of...
0
8535
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,...
0
9079
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, 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...
0
8954
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 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...
1
8794
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,...
0
7626
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6458
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5817
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4322
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2234
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.