Board index » cppbuilder » DETECTING CodeGuard is enabled or not
henk
![]() CBuilder Developer |
henk
![]() CBuilder Developer |
DETECTING CodeGuard is enabled or not2004-01-29 09:29:12 PM cppbuilder14 Is it possible to PROGRAMMATICALLY detect whether CodeGuard is enabled or not? This is because I sometimes forget to manually switch CG off, while preparing a "Release" version, which then results in the executable being dependent upon the presence of CG on the target machine.... |
Andrue Cope
![]() CBuilder Developer |
2004-01-29 10:59:04 PM
Re:DETECTING CodeGuard is enabled or not
On 29 Jan 2004 06:29:12 -0700, henk wrote:
QuoteThis is because I sometimes forget to manually switch CG off, run the batch file. Said batch file can also help create support files that your installation might need. Another advantage is that the command line compiler takes far less time to compile than the IDE. Make -B -frelease.mak -- Andrue Cope [Bicester UK] |
henk
![]() CBuilder Developer |
2004-01-29 11:43:26 PM
Re:DETECTING CodeGuard is enabled or not
THANKS for your reply.
Unexperienced with either Make or Batch things I somehow managed to get something going: Created a Make file out of the existing project. Created a batch file and added the Make _b -fHF_planning.mak command to it. run the batch file with the result: Fatal: Unable to open VCL50.BPI ** error ** deleting HF_planning.exe E:\Borland\CBuilder5\Projects\HF_planning> The said BPI file IS PRESENT in ..\Debug and in ..\Release! What is going wrong/am I doing wrong here? henk Andrue Cope < XXXX@XXXXX.COM >wrote: QuoteOn 29 Jan 2004 06:29:12 -0700, henk wrote: {smallsort} |
Dennis Jones
![]() CBuilder Developer |
2004-01-30 12:15:40 AM
Re:DETECTING CodeGuard is enabled or not
"henk" < XXXX@XXXXX.COM >wrote in message
Quote
- Dennis |
Andrue Cope
![]() CBuilder Developer |
2004-01-30 01:17:43 AM
Re:DETECTING CodeGuard is enabled or not
On 29 Jan 2004 08:43:26 -0700, henk wrote:
QuoteWhat is going wrong/am I doing wrong here? - there is nothing further you should have to do other than call make. BTW:I note a typo in your reply. You have "make _b" but it should of course be "make -b". -- Andrue Cope [Bicester UK] |
henk
![]() CBuilder Developer |
2004-01-30 01:20:59 AM
Re:DETECTING CodeGuard is enabled or not
THANKS!
Indeed I found that the Include path's and Lib path's did not have the $(BCB)\lib\debug resp \release entries.... so I created the if else endif as follows: !if $d(DEBUG) LIBPATH = ..\..\Bin;......$(BCB)\lib\debug INCLUDEPATH = ..\..\Bin;.....$(BCB)\lib\debug !else LIBPATH = ..\..\Bin; $(BCB)\lib\release INCLUDEPATH = ..\..\Bin; $(BCB)\lib\release !endif and now it works!!! thanks again henk |