Hi everyone,
How can I make DevStudio using different compilers for different
configurations? Lets say I have two configs: 32-bit and 64-bit
and, obviously, I want to build 1-st one with 32-bit cl and second one with
64-bit cl. How can I setup DevStudio to achieve this?
I’ve tried to modify my .dsp file setting CPP=deflocation\cl for 32-bit
config and CPP=64bitlocation\cl for 64-bit config, but it
seemed to have no effect. DevStudio still uses 32-bit (default compiler) for
my 64-bit config.
TIA,
Vladimir
By checking the structure of a DSP file, I cannot find that it’s
possible to have two separate compilers, but since DevStudio opens
Workspaces, You can make two projects, for 32 and 64 bit compilation
that use the same files.
Regards, Dejan.
“Chtchetkine, Vladimir” wrote:
Hi everyone,
How can I make DevStudio using different compilers for different
configurations? Lets say I have two configs: 32-bit and 64-bit
and, obviously, I want to build 1-st one with 32-bit cl and second one
with 64-bit cl. How can I setup DevStudio to achieve this?
I’ve tried to modify my .dsp file setting CPP=deflocation\cl for
32-bit config and CPP=64bitlocation\cl for 64-bit config, but it
seemed to have no effect. DevStudio still uses 32-bit (default
compiler) for my 64-bit config.
TIA,
Vladimir
–
Regards, Dejan M. CEO Alfa Co. http://www.alfaunits.co.yu and
www.register.co.yu
E-mail : xxxxx@alfaunits.co.yu ICQ# : 56570367
Professional file&system related components and libraries for Win32
developers.
Alfa Units - #1 file and system handling units for Delphi.
Alfa File Monitor - #1 file monitoring system for Win32 developers.
Alfa Interceptor - #1 file protection and hiding system for Win32
developers.
> How can I make DevStudio using different compilers for different
configurations? Lets say I have two configs: 32-bit and 64-bit
You have the DDK, right? How about using build.exe?
Try
http://home.netcom.com/~jaykrell/NtddkEnv2.bat
http://home.netcom.com/~jaykrell/NtddkBuild2.bat
put them in the same directory. Follow the instructions at the top of
NtddkBuild2.bat to set up the VC shell for running it. This lets you run
build.exe inside the VC shell so that error messages appear in the output
and you can double click on them.
Then, make a copy of NtddkBuild2.bat, it’s a small file, name it
NtddkBuild64.bat or somesuch, follow the instructions again to get another
menu item for the clone in VC, then tweak it and NtdddkEnv2.bat a bit so
they can run your 64bit compiler.
What’s your directory structure, like where are the two compilers, and their
associated include and lib files?
Some key lines in NtddkEnv2.bat are
set path=%MSDevDir%\bin;%MSVCDir%\bin;%path%
set BASEDIR=%1
set Path=%BASEDIR%\bin;%path%
set Lib=%BASEDIR%\lib;%lib%
set Include=%BASEDIR%\inc;%include%