On 19 Sep 2002 at 2:09, Frank Heckenbach wrote:
Prof. A Olowofoyeku (The African Chief) wrote:
This is an example of output of the "compile log" window: "c:\dev_gpc\bin\gpc --automake c:\dev_gpc\examples\untitled1.pas -oc:\dev_gpc\examples\untitled1.exe -fno-inline -fno-io-checking -fno-stack-checking -O1 -march=i386 -mcpu=i386 -funit-path=c:\dev_gpc\units -Bc:\dev_gpc\lib\ -Bc:\dev_gpc\lib\gcc- lib\ -Bc:\dev_gpc\bin"
So the necessary "-B" switches are there - and I cannot see why there should be a problem.
Perhaps adding "c:\dev_gpc\bin" to the Windows PATH might help.
Maybe the trailing `' is the problem. DJGPP seems to want a `/'.
As I said in a private email, the front slash seems to be be problem. Windows 9x does not seem to be able to handle front slashes when that is part of a path to a program that you want to execute. NT/2000/XP have no problem, and since all my developing and testing is done on those platforms, this deficiency in Windows 9x escaped me (I should have known that there are always hidden "gotchas" in older versions of Windows ;-| ). I am not sure that there is any way to avoid this problem under Windows 9x other than to avoid the use of front slashes in the gpc driver program when spawning other gpc processes, or to avoid it completely when __MINGW32__ is defined. This just introduces more fiddliness into the gpc driver program, and I am not too happy with this solution - but I can't think of any other ...
Anyway, if GPC is properly installed (i.e., in the directories it was built for, e.g. gpcpp in <prefix>/lib/gcc-lib/<target>/<platform>), no `-B' option should be needed at all.
True. But under Windows people like to install things in their own directory of choice. Perhaps this is a case where the installer should not give a choice and should always install into "\mingw" - but that approach would not be satisfactory.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~African_Chief email: African_Chief@bigfoot.com