Got another strange one here. I am getting the error below no matter what my BCB project has in it for the Reference Info compiler option... whether it is ON or OFF the error is that ON.dpr or OFF.dpr cannot be found. This does not happen when I compile from the IDE. The problem is being caused by the -$REFERENCEINFO paramter (bolded below).
Any idea what would cause this?
Thanks!
Kevin
********************************************************************** MAKE Version 5.2 Copyright (c) 1987, 2000 Borland C:\dev\Borland\BDS\4.0\bin\..\bin\bcc32.exe -H=C:\dev\Borland\BDS\4.0\bin\..\lib\vcl100.csm -Hc -tWD -w-par -O2 -b- -tWM -tW- -c -Inon_unicode_demo;C:\dev\Borland\BDS\4.0\bin\..\include;C:\dev\Borland\BDS\4.0\bin\..\include\dinkumware;C:\dev\Borland\BDS\4.0\bin\..\include\vcl;C:\dev\Borland\BDS\4.0\bin\..\Include\Indy10;C:\dev\Borland\BDS\4.0\bin\..\Lib\Indy10 -DKPDEMO;USEPACKAGES;NO_STRICT;_RTLDLL -onon_unicode_demo\VCLZipBCB2006_4.obj .\VCLZipBCB2006_4.cpp Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland .\VCLZipBCB2006_4.cpp: C:\dev\Borland\BDS\4.0\bin\..\bin\dcc32.exe --BCB -Inon_unicode_demo -JPHNE -NOnon_unicode_demo -N0non_unicode_demo -NHnon_unicode_demo -Rnon_unicode_demo -V -$C- -$D- -$L- -$W+ -$REFERENCEINFO OFF -Unon_unicode_demo;"C:\Users\KP\Documents\Borland Studio Projects";C:\dev\Borland\BDS\4.0\bin\..\lib;C:\dev\Borland\BDS\4.0\bin\..\lib\obj;C:\dev\Borland\BDS\4.0\bin\..\Include\Indy10;C:\dev\Borland\BDS\4.0\bin\..\Lib\Indy10 -Onon_unicode_demo;"C:\Users\KP\Documents\Borland Studio Projects";C:\dev\Borland\BDS\4.0\bin\..\lib;C:\dev\Borland\BDS\4.0\bin\..\lib\obj;C:\dev\Borland\BDS\4.0\bin\..\Include\Indy10;C:\dev\Borland\BDS\4.0\bin\..\Lib\Indy10 -DKPDEMO .\kpSFXCfg.pas Borland Delphi for Win32 compiler version 18.0 Copyright (c) 1983,2005 Borland Software Corporation Fatal: F1026 File not found: 'OFF.dpr' ** error 1 ** deleting non_unicode_demo_build make returned non zero : 1
I just looked through our source and we do not write this string anywhere that I can seeThe ide usually writes those values to the bpr/bpk files, and I suspect (from memory, been a while since I looked at bcb6) that the settings in the bpr/bpk file override anything passed in to the compiler on the command line. This may also be a bpr2mak issue. Check this page for some known issues with the bcb6 action :
My bad. The error is coming from a BCB 2006 Action. My brain is becoming mush at this point I think.
I am sure its coming from the project file since that kind of action doesn't allow setting of any compiler options anyways. I'll have to check the project file and see if I can notice anything strange. The weird thing is that it seems like I had this error the other day and the way I got rid of it was to make sure I left that option (REFERENCEINFO) unchecked (OFF) in the IDE which seemed to eliminate it from the command line all together. But now it seems to be put into the commmand line whichever value I select for that option.
OK, this is without a doubt a CBuilder 2006 bug. Once you have turned on that option in CBuilder.. it is always generated in the make file as either "-$REFERENCEINFO ON" or "-$REFERENCEINFO OFF" (without the quotes)
The only way I found to stop it getting generated is to delete this entry from the .bdsproj file :
Aaaah, thanks. I was going to check into that this morning as it got to be a little too late last night. I have found a few things like that, where the only way to get rid of something in a BCB project file is to manually remove it.