Hi !
I've installed mingw32 with gcc 3.2.3 and gpc 20030507 and I am in serious trouble while translating bp-projects to gpc. While compiling I get several "previos declaration does not match" errors within the same unit or across different ones, although the syntax is allright. (An asm-free translation of objects.pas successful compiled only after moving "uses dos" from the "implementation" to the "interface" part)
Then there are several "type mismatch" errors in functions with one var-parameter, which I cannot mark as protected. (Someone mentioned this allready, but still noone has replied to it)
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
------------------------------
Unit tv_spr;
Interface
Const spOk = 1; spAbbruch = 2; spJa = 3; spNein = 4;
implementation
end. -----------------------------------------
the commandline I used is
gpc -c -s --no-typed-address --extended-syntax --ignore-function-results --io-checking --no-stack-checking -march=i486 -mcpu=i486 --unit-path=g: \status\entwicklung\mdmprot\gpc\mdtv_may;g:\status\entwicklung\mdmprot\gpc\md_may;g:\status\entwicklung\mdmprot\gpc\source -Ig:\status\entwicklung \mdmprot\gpc\mdtv_may --cidefine=GPC_USE --cidefine=DPMI --cidefine=NOASM --cidefine=test --cidefine=USE_PDCURSES -- cidefine=LINODATA --cidefine=HARDDUMMY --executable-file-name unit.pas
Greetings, Thomas
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.
ThomasM 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. While compiling I get several "previos declaration does not match" errors within the same unit or across different ones, although the syntax is allright.
Please provide an example. Otherwise we can't help much.
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
Perhaps you've already seen the report by Gerrit P. Haase (subject: Re: Status of GPC?) and my reply containing this bugfix:
http://www.gnu-pascal.de/crystal/gpc/en/attachments/9364/gpc.diff-options
If you don't build GPC yourself, you might have to wait until the Chief releases a new binary with this bugfix.
Frank
On 5 Oct 2003 at 7:41, Frank Heckenbach wrote:
[...]
Perhaps you've already seen the report by Gerrit P. Haase (subject: Re: Status of GPC?) and my reply containing this bugfix:
http://www.gnu-pascal.de/crystal/gpc/en/attachments/9364/gpc.diff-option s
If you don't build GPC yourself, you might have to wait until the Chief releases a new binary with this bugfix.
AFAIK, there is no Mingw problem with the code that Gerrit reported. I have not released Mingw binaries for gpc-20030830 based on gcc-3.2.3 - but perhaps I will do that soon, and with the patch that you refer to applied.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/