Hello all!
I would like to hear someone who does not have problems using Crt unit on Linux. On Mandrake6.1 (distribution very similar to RedHat), gpc says the following:
---- gpc -c -g --automake /home/mpapec/pas/dumy.pas -o ./dumy.o /tmp/cc8xNyqX.s: Assembler messages: /tmp/cc8xNyqX.s:6193: Error: Symbol `Initexec' can not be both weak and common /tmp/cc8xNyqX.s:6193: Error: Symbol `Doneexec' can not be both weak and common gpc1: gpc exited with status 1 crt.pas:345: `/usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/crtc.c' could not be compiled ----
and these are problematical lines: --file:crtc.c-- /* Assign the Dos unit's variables to the following routines to be called before and after Exec. If Dos is not used, create dummies here. */ void (*Initexec)() __attribute__((weak)); void (*Doneexec)() __attribute__((weak)); ----
What should be putted here? TIA :)
24-Dec-99 15:04 you wrote:
Hello all!
I would like to hear someone who does not have problems using Crt unit on Linux. On Mandrake6.1 (distribution very similar to RedHat), gpc says the following:
gpc -c -g --automake /home/mpapec/pas/dumy.pas -o ./dumy.o /tmp/cc8xNyqX.s: Assembler messages: /tmp/cc8xNyqX.s:6193: Error: Symbol `Initexec' can not be both weak and common /tmp/cc8xNyqX.s:6193: Error: Symbol `Doneexec' can not be both weak and common gpc1: gpc exited with status 1 crt.pas:345: `/usr/lib/gcc-lib/i586-pc-linux-gnu/2.8.1/units/crtc.c' could not be compiled
and these are problematical lines: --file:crtc.c-- /* Assign the Dos unit's variables to the following routines to be called before and after Exec. If Dos is not used, create dummies here. */ void (*Initexec)() __attribute__((weak)); void (*Doneexec)() __attribute__((weak));
What should be putted here?
It's fixed in latest alpha.