Hello,
Thankyou for your prompt help.We have downloaded the latest one gpc-20010107 .The below problem is solved but we have some problem for which we don't know any clue to solve.I am attaching the logging.
thankyou. Regards, Hari
frank@g-n-u.de wrote:
Kocherlakota Harikrishna wrote:
We have some problems in compilation of BP sources with GPC on Red Hat Linux. The following peice of code in our source is giving copilation problem
procvar = procedure; const nilproc : procvar = nil;
BP supports assinging pointer values to procedure types and we find that GPc doesnot support it.
Expecting your advice on solving the above.
This works with recent GPC versions (since 20000213, IIRC). I just tested the following program successfully:
program Foo;
type procvar = procedure;
const nilproc : procvar = nil;
begin end.
Frank
-- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html
[root@stwpgt bin]# ./gpc --automake -Dwin32 -DNODLL --extended-syntax pcamac.pas /root/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/libgpc.a(string.o): In function `Cstringlastchpos': /root/usr/gcc-2.95.2/gcc/p/rts/string.pas:552: multiple definition of `_p_strrscan' /tmp/ccIE7Eur1.o(.text+0x18f8): first defined here /root/usr/i686-pc-linux-gnu/bin/ld: Warning: size of symbol `_p_strrscan' changed from 140 to 68 in string.o /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x18): undefined reference to `main' /tmp/ccIE7Eur1.o: In function `Filesplit': /tmp/ccIE7Eur1.o(.text+0xa9): undefined reference to `_p_strpas' /tmp/ccIE7Eur1.o: In function `Callprocvar': /tmp/ccIE7Eur1.o(.text+0x473): undefined reference to `toCall' /tmp/ccIE7Eur1.o: In function `Byte_comp': /tmp/ccIE7Eur1.o(.text+0x1b5e): undefined reference to `Compare' /tmp/ccIE7Eur1.o: In function `Get_exename': /tmp/ccIE7Eur1.o(.text+0x434e): undefined reference to `Get_loadpath' /tmp/ccIE7Eur1.o(.text+0x4437): undefined reference to `_p_strpas' /tmp/ccIE7Eur1.o: In function `init_Pcamac': /tmp/ccIE7Eur1.o(.text+0x5354): undefined reference to `init_Strings' /tmp/ccIE7Eur1.o(.text+0x5359): undefined reference to `init_Pekxac' /tmp/ccIE7Eur1.o(.text+0x535e): undefined reference to `init_Pguzaa' collect2: ld returned 1 exit status