Re: Lack of binary compatibility between VC++ versions?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Carl Daniel [VC++ MVP] (cpdaniel_remove_this_and_nospam_at_mvps.org.nospam)
Date: 12/29/04


Date: Wed, 29 Dec 2004 07:47:38 -0800

John Smith wrote:
>> In makefile you can add lines like:
>>
>> ver700:
>> call ver700.bat
>>
>> ver600:
>> call ver600.bat
>>
>> and in build command add that target as well, like
>> nmake -f.\makefile ver700 all
>>
>> With similar mechanizm you can define some keyword or option for
>> compiler & linker.
>>
>
> Actually a very good idea. However I don't use nmake (I use makepp
> http://makepp.sourceforge.net) and this make program is a bit buggy
> when calling external programs (yeah I've wasted lots of hours on
> that). If I could just have the batch file return an error if
> something went wrong it would be ideal. Maybe another scripting
> language could help me out?

You could use JScript or Perl. I know Perl can return an error code (the
process exit code), I would hope (but can't personally attest) that
JScript/Cscript.exe has a similar ability.

-cd



Relevant Pages