Waldek Hebisch wrote:
Bastiaan Veelo wrote:
Is it correct that gpc does not look in its own units directory by default? If I have a main.pas that does import gpc, I have to build with something like (on windows):
@gpc --print-file-name=units > temp.tmp @SET /p GPC_UNITS=<temp.tmp DEL temp.tmp
gpc --unit-path="%GPC_UNITS%" --automake main.pas
Can this not be done more straightforward? gpc.exe 20051116, based on gcc-3.2.3 (mingw special 20030504-1)
gpc --automake main.pas
should work. You gave to little details to find out why this does not work for you (maybe your paths contain some strange characters).
$ gpc --print-file-name=units c:/Program Files/msys/1.0/mingw/bin/../lib/gcc-lib/mingw32/3.2.3/units
$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Perl/bin/:/cygdrive/c/Program Files/Salford Software/FTN95:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/IFOR/WIN/BIN/EN_US:/cygdrive/c /IFOR/WIN/BIN/:/cygdrive/c/Program Files/QuickTime/QTSystem/:/cygdrive/c/Program Files/Common Files/GTK/2.0/bin:/cygdrive/c/Program Files/Subversion/bin:/cygdrive/c/mingw/bin:/cygdrive/c/Program Files/msys/1.0/mingw/bin:/cygdrive/c/extpas/BIN:/cygdrive/c/Program Files/Nmap
Are there other details you are interested in? Could the space in "Program Files" be the cause of the problem? Or maybe because I am building under Cygwin and gpc is installed from mingw?
Best regards, Bastiaan.