Re: Command line compiler
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Fri, 02 Jun 2006 12:12:18 -0400
Wow! You really enjoy misery! (I'm an old Unix programmer, and nothing has made me
happier than never again having to look at a makefile. And I used to be the Wizard of
Makefiles--people would come to me to get their makefile problems fixed...)
You can always just call cl.exe; that's all the IDE does anyway. Back pre-VS, I used to
write makefiles and call cl from the makefile rules.
Note that you must have the appropirate directory in your search path to make this work;
otherwise, the necessary DLLs may not be findable. When you install VS, it usually gives
you an option of creating a little .bat file that contains all the necessary SET options,
which in the pre-vs days, I would invoke as part of my "build" sequence.
You will also need to make sure your INCLUDE= and LIB= paths are set. It has been about
15 years since I've had to look at makefiles, so I'm not up on all the details any longer.
I used to write programs that generated makefiles (one called "makemake", which my client,
who lived in Hawaii, would pronounce "mocky-mocky")
The mspdb71.dll should definitely be installed, and I found it in my installation. It is
not, however, in the bin directory. I set the compilation up by setting the following
directories to the PATH variable:
c:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE;c:\program files\Microsoft
Visual Studio .NET 2003\Vc7\bin
Note the Common7 directory must be added. When I ran the cl command from the command
line, it worked fine, except that I didn't have all the options set right in the command
line so I got a lot of errors about missing command line options, but it actually tried to
compile my .cpp file.
joe
On 1 Jun 2006 17:36:31 +0200, Peter Jay Salzman <p@xxxxxxxxx> wrote:
Hi all,Joseph M. Newcomer [MVP]
I'm a GNU/Linux developer trying to get comfortable with developing on the
Microsoft platform. At work I have Visual Studio 2003 version 7.1.3088.
I would like to use a command line compiler, my own Makefile, and my own
editor to develop software. I would like to forego the IDE completely.
I've read that there's a command line VC++ compiler called cl.exe, and even
found it sitting on my hard drive:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe
However, when I try to run the command line compiler (just typed "cl.exe"), I
get a pop-up window with the error message:
This application has failed to start because mspdb71.dll was not
found. Re-installing the application may fix this problem.
I did a quick search and can't find that dll.
Can someone post simple instructions on how I can get up and running with the
command line version of a visual C++ compiler?
Thanks,
Pete
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Command line compiler
- From: Peter Jay Salzman
- Command line compiler
- Prev by Date: Re: Invalidate for non-client areas?
- Next by Date: Re: delete *this possible?
- Previous by thread: Re: Command line compiler
- Next by thread: Re: Modeless dialog closing a modal dialog problem
- Index(es):
Relevant Pages
|