Solved

command line build in visual studio 6.0

Posted on 2004-08-15
6
3,278 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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