![]() |
![]() |
#1 |
Apr 2004
Copenhagen, Denmark
22·29 Posts |
![]()
Hi everyone!
I'm trying to build some programs from source, but I ran into a little trouble. ![]() Note: I'm still not a very seasoned tool builder. I just stumble my way through without really knowing what happens. ![]() I'm using Mandrake 10.1 with no funny gcc stuff installed. Here's the error that I got: Code:
cc -Wall -W -Wshadow -Wundef -march=x86-64 -g -static ./sqrt.o ./basic.o ./basicassem.o \ -L/usr/local/lib/ -lm -o sqrt /usr/bin/ld: cannot find -lm collect2: ld returned 1 exit status ![]() -- Cheers, Jes |
![]() |
![]() |
![]() |
#2 |
Mar 2005
Internet; Ukraine, Kiev
11×37 Posts |
![]()
You have tried to build a static binary (-static) and have requested to link it with math library (-lm). So you'll need a static version of libm (usually /usr/lib/libm.a). AFAIK, in Madrake libm.a is in the glibc-static-devel package. Install the package and type `make' again.
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CUDA linking on Mac | Prime95 | Programming | 5 | 2014-12-22 22:30 |
Msieve: problem linking with other C library | srawlins | Msieve | 6 | 2010-04-02 02:05 |
Linkhelpers, Link error while linking a shared lib | linkhelpers | Linux | 1 | 2009-09-17 03:49 |
BUG: upgrade/linking lost my reservations | sylvester | PrimeNet | 0 | 2008-10-28 05:21 |
Error 5 causes userid change and error 17 updates for exponents | Old man PrimeNet | PrimeNet | 0 | 2006-02-05 02:27 |