Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2004-05

Probably three new bugs

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gecko

I found three bugs:

1)When I am compiling program with {$LINKLIB c} directive, I have got error, that cannot find gcc library ("d:/maciek/fpc/bin/go32v2/ld.exe: cannot find -lgcc").

2)When I am using printf function, I have got error message like this:

D:\MACIEK\/libC.a(doprnt.o)(.text+0xa61):doprnt.c: undefined reference to `__umo
ddi3'
D:\MACIEK\/libC.a(doprnt.o)(.text+0xaa0):doprnt.c: undefined reference to `__udi
vdi3'

My printf declaration:
function printf(fm:pchar;args:array of const):integer;cdecl;external;
3)When I am writing number for Int64/QWord variables using ":=", i can
write only Longint/Longword values.

NOTE: I'm not subscribed to this mailing list, so please send me a copy of answers at

Regards,

Maciej.

Reply by email

Peter Vreman
to Gecko
you wrote 17 lines
I found three bugs: 1)When I am compiling program with {$LINKLIB c} directive, I have got error, that cannot find gcc library ("d:/maciek/fpc/bin/go32v2/ld.exe: cannot find -lgcc"). 2)When I am using printf function, I have got error message like this: D:\MACIEK\/libC.a(doprnt.o)(.text+0xa61):doprnt.c: undefined reference to `__umo ddi3' D:\MACIEK\/libC.a(doprnt.o)(.text+0xaa0):doprnt.c: undefined reference to `__udi vdi3' My printf declaration: function printf(fm:pchar;args:array of const):integer;cdecl;external;

These functions are defined in libgcc.a. You need gcc for djgpp to link with libc. If you already have gcc installed then search were libgcc.a is located and add this location to the commandline of fpc using -Fl.

3)When I am writing number for Int64/QWord variables using ":=", i can write only Longint/Longword values.

The beta compilers (1.9.x) supports constants > maxlongint.

Peter

Reply by email