Sign in Join

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

Mailing lists / fpc-pascal / 2003-07

Linker error under FreeBSD

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Karim Forsthofer

Hello

I tried to compile a program with fpc (for FreeBSD). The objectfile was build, but the linker put an error msg on the screen. linking
/usr/bin/ld cannot find -ldl
ehh ?
I looked in the /usr/bin dir, the gnu linker is there. What`s the problem ?

Karim

______________________________________________ http://www.linuxmail.org/ Now with e-mail forwarding for only US$5.95/yr Powered by Outblaze

Reply by email

Marco van de Voort
to Karim Forsthofer
I tried to compile a program with fpc (for FreeBSD).

It sounds like you tried to build a LInux specific program :-)

The objectfile was build, but the linker put an error msg on the screen. linking /usr/bin/ld cannot find -ldl

File libdl is missing. However these calls are integrated into libc under FreeBSD, and not separate as under Linux. Try to find a {$linklib dl} in the source and put a {$ifndef BSD} around it, so that it reads:

{$ifndef BSD}
{$linklib dl}
{$endif}
ehh ? I looked in the /usr/bin dir, the gnu linker is there. What`s the problem ?

Reply by email