Thomas M wrote:
I've installed mingw32 with gcc 3.2.3 and gpc 20030507 and I am in serious trouble while translating bp-projects to gpc.
To get progress in translation I start to compile only single units without linking and then I was fooled sometimes by this error message "--amtmpfile not given". Some units will being compiled and other not like
I hoped that some of Windows folk would comment. I tried your unit on Linux and it compiled with no problems (I ommited the unit-path part as it should not matter and as-is made no sense on Linux, also the command line was broken in some crucial places and I joined them).
gpc uses '-famtmpfile' option for internal purposes and unless you play tricks with 'gpc1.exe' compiler should not complain about this option. There may be problem with handling command line in mingw32. You may try giving 'gcp' the '-v' option. With that option it will print full command lines for various compilation stages. One line corresponds to 'gpc1'. That line should contain '-famtmpfile' option.
One possible source of your problem is if the command line get truncated -- DOS (and DOS box in Windows) has limit of 127 chars and gpc uses much longer command lines. AFAIK 'gpc' works around the problem but Windows folks should know better if there are some traps.