qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] linking problem


From: Paul Brook
Subject: Re: [Qemu-devel] linking problem
Date: Sat, 28 Aug 2004 21:29:41 +0100
User-agent: KMail/1.6.2

On Saturday 28 August 2004 21:24, Joe Menola wrote:
> On Sat August 28 2004 12:24 pm, Lonnie Cumberland wrote:
> > Hello All,
> >
> > I am running Mandrake 10.0 and am trying to compile the qemu-0.6.0
> > version but keep getting this error:
> >
> >
> > ar rcs libqemu.a exec.o translate-all.o cpu-exec.o translate.o op.o
> > helper.o helper2.o translate-copy.o disas.o  i386-dis.o
> > gcc  -static -Wl,-T,/home/lonnie/QEMU/qemu-0.6.0/i386-vl.ld  -o
> > qemu-fast vl.o osdep.o block.o monitor.o pci.o ide.o ne2000.o pckbd.o
> > vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o
> > pc.o cirrus_vga.o gdbstub.o sdl.o slirp/cksum.o slirp/if.o
> > slirp/ip_icmp.o slirp/ip_input.o slirp/ip_output.o slirp/slirp.o
> > slirp/mbuf.o slirp/misc.o slirp/sbuf.o slirp/socket.o slirp/tcp_input.o
> > slirp/tcp_output.o slirp/tcp_subr.o slirp/tcp_timer.o slirp/udp.o
> > slirp/bootp.o slirp/debug.o libqemu.a  -lm -L/usr/lib -lSDL -lpthread
> > -lm -ldl -lasound -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext -lutil
> > /usr/bin/ld: cannot find -lm
> > collect2: ld returned 1 exit status
> > make[1]: *** [qemu-fast] Error 1
> > make[1]: Leaving directory `/home/lonnie/QEMU/qemu-0.6.0/i386'
> > make: *** [all] Error 1
> >
> > what is the "-lm" library?

-lfoo means link with libfoo.

libm is the C math library.

> I forget exactly what -lm is, but it's in one of theses packages..
>
> glibc-static-devel

Probably this one.

The exact package names vary, but make sure you have the glibc development 
packages installed.

Paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]