[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: srtti project
- From: Steven Elkins <sgelkins@...>
- Date: Sat, 7 Aug 2004 22:54:41 -0400
On Sat, 07 Aug 2004 09:08:32 +0200, Vincent Penne <ziggy@sashipa.com> wrote:
> I've just released a new version (0.9.1) which fixes a bug in the lua 5
> binding.
I've never used fltk (1.1.5rc2) before but (once I figured out I had
to build it with threads enabled) your binding (as exemplified in
test.lua) worked out of the box for me on OpenBSD 3.5. The 'clean'
target breaks me though
sge:571$ cd samples/fltk/
sge:572$ gmake
[compiling bind-fltk-ext.cxx]
In file included from fltk.cxx:1,
from bind-fltk-ext.cxx:1:
/usr/include/malloc.h:4: warning: #warning "<malloc.h> is obsolete,
use <stdlib.h>"
[building library lua5-fltk.a]
[compiling tbind-fltk.cxx]
sge:573$ ./lua5-fltk test.lua
nil
3
button state 1
button state 0
27
26
25
24
23
deleting window
sge:574$ gmake clean
[cleaning]
rm -f bind-fltk-ext.o tbind-fltk.o lua5-fltk.a bind-fltk.cxx
sge:575$ gmake
[preprocessing fltk.cxx]
fltk.cxx:0: malformed option `-D asm(...)='
fltk.cxx:0: malformed option `-D __asm__(...)='
fltk.cxx:0: malformed option `-D __attribute__(...)='
In file included from fltk.cxx:1:
/usr/include/malloc.h:4: warning: #warning "<malloc.h> is obsolete,
use <stdlib.h>"
In file included from /usr/include/machine/types.h:38,
from /usr/include/sys/types.h:44,
from /usr/include/stdlib.h:40,
from /usr/include/malloc.h:6,
from fltk.cxx:1:
/usr/include/sys/cdefs.h:77: warning: `__inline' redefined
*Initialization*:1: warning: this is the location of the previous definition
gmake: *** [fltk.i] Error 1
rm fltk.i
sge:576$
I hack around it like so...
sge:587$ diff -u Makefile.ORIG Makefile
--- Makefile.ORIG Thu Aug 5 20:57:51 2004
+++ Makefile Sat Aug 7 22:48:44 2004
@@ -67,7 +67,7 @@
.PHONY : clean
clean :
@echo [cleaning]
- rm -f $(LOBJS) $(OBJS) $(LIB) $(BINDFILE)
+ rm -f $(LOBJS) $(OBJS) $(LIB)
.SUFFIXES : .cxx .c .o .i
sge:588$
Anyway, thanks! I think it'd be even more fun I knew fltk.
Steve
--
How wonderful it is that nobody need wait a single moment
before starting to improve the world. -- Anne Frank
Paradise is exactly where you are
right now...only much, much better. -- Laurie Anderson