Sign in Join

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

Mailing lists / fpc-pascal / 2000-09

question - linking under Linux

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Martin Hankovec

Hello,
I have a problem. If I tried to compile some program under Linux, I got this message: (dots represent some not important text :-)))

Free Pascal .....
Compiling ......
Assembling ...
Linking...
/usr/bin/ld: cannot open -lm: not file or directory Warning: Error while linking
Closing script ppas.sh
95 lines compiled, ...

What's the reason of this error ? Is it any bad set of path ?

Thanks a lot

Martin H.

Unknown author
Hello, I have a problem. If I tried to compile some program under Linux, I got this

message:

Show quoted text 12 lines
(dots represent some not important text :-))) Free Pascal ..... Compiling ...... Assembling ... Linking... /usr/bin/ld: cannot open -lm: not file or directory Warning: Error while linking Closing script ppas.sh 95 lines compiled, ... What's the reason of this error ? Is it any bad set of path ?

It's isn't a pascal specific problem.

Do you have the development files of libc installed?

Can you compile C programs on you machine?

Peter

Martin Hankovec

Sorry,
of course You're right. I have an old machine with 600 M hard so I installed only few components for developing.

Have a good day and thanks a lot.

Martin