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).