Zeus IDE Forum Index Zeus IDE
Use this forum to ask for help, submit a bug report or make a suggestion.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Configure Zeus for Microsoft Visual Studio

 
Post new topic   Reply to topic    Zeus IDE Forum Index -> Tutorials, Tips and Tricks
View previous topic :: View next topic  
Author Message
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 2177

PostPosted: Wed Jan 31, 2007 11:47 pm    Post subject: Configure Zeus for Microsoft Visual Studio Reply with quote

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:

Quote:
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 Wink

For example assume the following MSVC compiler command line is needed to compile the test.cpp file:
Code:
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:
REM Uncomment the next line once the compile is working
REM @echo off

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

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:
"$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.

TROUBLESHOOTING:
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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Zeus IDE Forum Index -> Tutorials, Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group