[fpc-pascal]linker error

Georgi Georgiev skelet_bg at yahoo.com
Tue Jul 31 15:23:45 CEST 2001


I am using FPC 1.0.4 on Debian Linux Potato 2.2.

The following program:

--------------------------------

program ld_test;

function sys_call(str:pchar):longint; 
 external 'libc' name 'system';

begin
 sys_call('ls');
end.

--------------------------------

produce the following compiler output:

Free Pascal Compiler version 1.0.4 [2001/01/02] for
i386
Copyright (c) 1993-2000 by Florian Klaempfl
Target OS: Linux for i386
Compiling ld-test.pp
Assembling ld_test
Linking ld-test
/usr/bin/ld: cannot find -lc
ld-test.pp(11) Warning: Error while linking
Closing script ppas.sh
10 Lines compiled, 0.0 sec

It seems that linker can't find the libc library.
Wath can i do ?



=====
Skelet
====== http://skelet.hit.bg

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie




More information about the fpc-pascal mailing list