Re: can't get svgalib to compile!

Search this archive.

From: Matan Ziv-Av (matan@svgalib.org)
Date: Fri 23 Feb 2001 - 22:35:28 IST


On Fri, 23 Feb 2001, Neil Golden wrote:

> What is my problem? besides being a newbie, that is.
> 
> On a virtually untouched Redhat 7 installation, I get this message when
> trying to compile 1.9.5:
> 
> /usr/local/src/svgalib-1.9.5/src/keyboard/keyboard.c: In function
> `keyboard_getevents':
> /usr/local/src/svgalib-1.9.5/src/keyboard/keyboard.c:496: malformed
> floating constant
> /usr/local/src/svgalib-1.9.5/src/keyboard/keyboard.c:496: case label does
> not reduce to an integer constant
> make[1]: *** [keyboard/keyboard.o] Error 1
> make[1]: Leaving directory `/usr/local/src/svgalib-1.9.5/sharedlib'
> make: *** [sharedlib/libvga.so.1.9.5] Error 2
> [root@localhost svgalib-1.9.5]#

The line comtains the ... construct which needs spaces around it (in
newer gcc), simply add those changes, and it will compile.
The latest pr releases of 1.4.3 and 1.9.7 contain this fix already.


-- 
Matan Ziv-Av.                         matan@svgalib.org


------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST