Configure Zeus for Microsoft Visual Studio

Find Tips and tricks on how to better use the Zeus editor. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
Site Admin
Posts: 2449
Joined: Fri Aug 13, 2004 5:10 pm

Configure Zeus for Microsoft Visual Studio

Post by jussij » Wed Jan 31, 2007 11:47 pm

The Microsoft Visual Studio provides the VCVARS32.BAT batch file for setting up the compiler command line environment.

Here are the locations of this file for the MSVC Version 6 and Version 8 default installations:
Directory of C:\Program Files\Microsoft Visual Studio 9.0\VC\bin

07/03/2007 03:44 PM 31 vcvars32.bat
1 File(s) 31 bytes

Directory of c:\Program Files\Microsoft Visual Studio\VC98\Bin

19/01/2006 16:21 989 VCVARS32.BAT
1 File(s) 989 bytes

Directory of C:\Program Files\Microsoft Visual Studio 9.0\VC\bin

07/03/2007 03:44 PM 31 vcvars32.bat
1 File(s) 31 bytes
This file can be used to run the cl.exe compiler from within Zeus ;)

For example assume the following MSVC compiler command line is needed to compile the test.cpp file:

Code: Select all

cl.exe -c -W3 test.cpp
To run this from within Zeus create the following zeus_msvc.cmd batch file in the Zeus install directory:

Code: Select all

REM Uncomment the next line once the compile is working
REM @echo off

REM *** Change the next few lines to match the location of your VCVARS32.BAT file

REM Setup the MSVC 6 environment
REM call "c:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT"

REM Setup the MSVC 8 environment
call "c:\Program Files\Microsoft Visual Studio 8\VC\bin\VCVARS32.BAT"

REM Run the compiler
cl.exe -c -W3 %1
Next, use the Zeus Options, Document Types menu to edit the C/C++ Document Type and in the Compiler section define the following compiler command line:

Code: Select all

"$zdzeus_msvc.cmd" $fn
NOTE: The $zd macro tag gets substituted for the Zeus install directory while the $fn macro tag substitutes for the currently active document.

Also enable the Capture standard error output and Always display options and Appply the changes.

Finally open the test.cpp file and use the Compiler, Compile menu to compile the file.

If you have trouble getting the compile to run use the Zeus Options, Editor Options menu and in the General section enable Help debug tool, macros and executables option.

With this option enabled, run the compile and then use the Zeus Macros, Macro/Debug Output menu to view the debug output.
Cheers Jussi

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 1 guest