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

Re: Problems in compiling a static binary

On Thu, Feb 03, 2000 at 07:18:39PM +0100, Andrea Pintori wrote:

> but the program I
> have to compile uses libraries such as "vga.h", "vgagl.h" and
> when I try to compile it with something like
> "g++ dummy.cpp -lvga -lvgagl -static"
> I receive a lot of error messages:
> /usr/lib/libvga.a(vga.o): In function `__svgalib_open_devconsole':
> vga.o(.text+0x5d7): undefined reference to `_IO_stdin_'
> vga.o(.text+0x5e1): undefined reference to `_IO_stdout_'
> vga.o(.text+0x5eb): undefined reference to `_IO_stderr_'

It looks like libc incompatability between your libvga.a
and libc.a.  This libvga.a is libc5.  If your libc.a is
libc6 (glibc2) then you need a newer libvga.a.

Christopher John Purnell  | A friend in need's a friend in deed
http://www.lost.org.uk/   | A friend with weed is better
--------------------------| A friend with breasts and all the rest
What gods do you pray to? | A friend who's dressed in leather