Solved

command line build in visual studio 6.0

Posted on 2004-08-15
6
3,256 Views
Last Modified: 2013-11-20
Hi, I'm using "programmer studio" and visual studio 6 . For the configuration of "programmer studio" I have to give the command line for building and compiling a project with the vc6-compiler. I know that the compilation can be done using "cl [ option... ] filename... [ /link linkoption... ]", but I don't know how to build an exe using the command line (I did a "cl /help", which gives all the command line options, but there is no build available , apparently).

Does anyone knows the "command line" for building a win 32 without MFC application ??
Thanks
0
Comment
Question by:teuntje
  • 2
  • 2
  • 2
6 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 11804062
Command line for Release configuration:

msdev YourProject.dsp /MAKE "YourProject - Win32 Release"

Command line for Debug configuration:

msdev YourProject.dsp /MAKE "YourProject - Win32 Debug"
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 40 total points
ID: 11804067
msdev.exe is the program which may run both in IDE mode and in console mode. To see all msdev command line parameters, open DOS window and type:

msdev.exe /?
0
 
LVL 2

Author Comment

by:teuntje
ID: 11804137
Thanks a lot.
"
Usage:
  MSDEV [myprj.dsp|mywksp.dsw]  - load project/workspace
...
"
does this means that it is inpossible to build just a cpp file WITHOUT making project or workspace files ?? (since programmer studio doesn't support those files) ???
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 19

Expert Comment

by:drichards
ID: 11804141
>> I know that the compilation can be done using "cl [ option... ] filename... [ /link linkoption... ]",
>> but I don't know how to build an exe using the command line

You run the cl command with "/link <link options>" and it will build an executable.  use the "/OUT:filename" option to name the executable.  You'll also need to set various compiler and linker options to choose C-runtime libraries and create debug info, etc.  It can be tricky to get the correct settings if you are not familiar with command line builds.

You can also do a two-step build.  If you use the "/c" option to run the "cl" command, it will compile only.  You have to build the executable by running another "cl" command or the linker directly.
0
 
LVL 19

Assisted Solution

by:drichards
drichards earned 40 total points
ID: 11804148
Actually the executable will be built unless you use the "/c" option.  You only need the "/link <link options" option to use non-default link options.
0
 
LVL 2

Author Comment

by:teuntje
ID: 11804156
OK. Thanks a lot.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now