Sign in Join

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

Mailing lists / fpc-pascal / 2001-08

Re: linking error

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Jonas Maebe

Begin forwarded message:

From: Peter Vreman Date: din jul 31, 2001 04:44:44 Europe/Brussels

[cut]

Show quoted text 37 lines
> 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 ? try compile using -a -s and look in the ppas.sh and link.res scripts. You can then run /ppas.sh to manually do the linking stage.

Reply by email