Topic: Double " in makefile
I believe you told me a while ago, Jeff, that a strange quirk with Windows can cause the makefile to produce strings with double-double inverted commas.
In my current project, and using SF 1.25, all was well, building and re-building normally, until after a cold re-boot. Then, when attempting a re-build, I obtained this error:
===============================================
Open Watcom Make Version 1.9
Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
""C:\Program Files (x86)\Fortran\Simply\mingw\bin\gfortran.exe"" -c -o build\rMatls.o -g -mtune=core2 -IC:/PROGRA~2/Fortran/Simply/mingw/include/ -IG:/InStruct/../MODULES -IG:/InStruct/../INCLUDE -fdollar-ok -Jmodules .\Source\rMatls.for
4NT: Unknown command "C:\Program"
Error(E42): Last command making (build\rMatls.o) returned a bad status
===============================================
Looking at the makefile, I found this code in the first few lines:
#
# Automagically generated by Approximatrix Simply Fortran
#
FC=""C:\Program Files (x86)\Fortran\Simply\mingw\bin\gfortran.exe""
CC=""C:\Program Files (x86)\Fortran\Simply\mingw\bin\gcc.exe""
AR="F:\mingw\bin\ar.exe"
TOUCH=""C:\Program Files (x86)\Fortran\Simply\fwin\wtouch.exe""
RM=del
IDIR=-IC:/PROGRA~2/Fortran/Simp.....
Checking the currently-set options I found these strings saved:
Make location
C:\Program Files (x86)\Fortran\Simply\fwin\wmake.exe
Touch location
C:\Program Files (x86)\Fortran\Simply\fwin\wtouch.exe
Compiler location
C:\Program Files (x86)\Fortran\Simply\mingw\bin\gfortran.exe
AR location
F:\mingw\bin\ar.exe
I can solve this by two methods. One is to correct the makefile manually and deselect the project option to regenerate it. The other is to chnge my options settings to use my F:\ virtual drive path for all locations, thus:
Make location
F:\fwin\wmake.exe
Touch location
F:\fwin\wtouch.exe
Compiler location
F:\mingw\bin\gfortran.exe
AR location
F:\mingw\bin\ar.exe
(For other readers' benefit, I use a Win Doze utility to assign the path
"C:\Program Files (x86)\Fortran\Simply" to a virtual drive I call "F:\")
It is odd that this problem 'went away' after the last time I reported it and has only come back after a cold reboot. As bfore, I've found a way to make it 'go away' again, but you might want to look into it, Jeff.
----
John