Forum > Linux

First compiling

(1/2) > >>

Marsa matruh:
Hi,

I'm trying to use Lazarus under Fedora Core 3. I succeded in installing Lazarus and FPC themself. But now, I'm not succesfull in compiling my first project. I get un error during linking :
/usr/bin/ld: ne peut trouver -lm (en français dans le texte ;-)

I had a look to the FAQ. But what is the m library? m4? What should I install? A rpm name?

Adam.Pilorz:
Hmmm... Maybe you can change language to english, try to compile, and then write here what's the error message. In english more people could understand it :).

Anonymous:
Don't need to switch to english. It should like :
/usr/bin/ld : can't find -lm

Anonymous:
On Fedora Core 3 there is
/lib/libm.so.6
which is part of the glibc package.

Vincent Snijders:
I am no linux guru, AFAIK the linker searches for a file without version extension. Do you have libm.so?

If not install the development package for libm (I don't know the name) or create the link yourself.
On my computer this libm.so is in /usr/lib. You can create it like this:

--- Code: ---ln -s /lib/libm.so.6 /usr/lib/libm.so
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version