Advertisement

Compiling

Started by February 20, 2000 02:14 PM
0 comments, last by CJ 25 years ago
Hiya, I''m getting to hate VC++, so.....I want to use textPad for my editing, but.......now I need to know how you can compile something (project?) in the dos-prompt or wherever. What are the standard parameters? what are the files which have to be loaded? I appreciate ur input...... Dance with me......

http://members.xoom.com/CJdeVos/index.htm

Generally you have to initialize your environment space with the vcvars32.bat batch file. You can either do this in your autoexec file or your command prompt. As a warning, the batch file will generally overflow the available memory when running it in a standard command.com prompt. So adjust the starting environment memory on the properties of the command.com file.

Remember, unless you run the evironment updates from autoexec, the environment updates are specific to the command prompt you ran them in. Also, just double-clicking the vcvars32.bat file is pretty useless. (It creates a new console session, updates the environment, and closes the console session.)

Once the environment is initialized you can compile programs with cl.exe as the C/C++ compiler. Additionally you can use standard unix style make files with the VC++ executable, nmake.

If you''re just getting started running VC++ from command line, I suggest first using the IDE to create project files and covert the project files to makefiles. From there you can use command line nmake on the makefiles, and it''s relatively easy to edit the makefiles to acomodate new source files.

This topic is closed to new replies.

Advertisement