Eduardo Cavazos
2009-12-26 09:26:32 UTC
Hello,
This program works fine:
----------------------------------------------------------------------
(import (rnrs)
(glut)
(srfi :27 random-bits))
(glutInit (vector 0) (vector ""))
----------------------------------------------------------------------
However, this one:
----------------------------------------------------------------------
(import (rnrs)
(srfi :27 random-bits)
(glut))
(glutInit (vector 0) (vector ""))
----------------------------------------------------------------------
results in an FFI error:
----------------------------------------------------------------------
~ $ rlwrap ~/src/larceny-0.97-bin-native-ia32-linux86/larceny -r6rs
-program /tmp/test-larceny-gl-b.sps
Warning: loading source in favor of stale fasl
file: /home/dharmatech/src/larceny-0.97-bin-native-ia32-linux86/lib/Standard/time.sch
Warning: loading source in favor of stale fasl
file: /home/dharmatech/src/larceny-0.97-bin-native-ia32-linux86/lib/Ffi/ffi-i386.sch
Warning: loading source in favor of stale fasl
file: /home/dharmatech/src/larceny-0.97-bin-native-ia32-linux86/lib/Ffi/ffi-linux-x86.sch
Error: no handler for exception #<record &compound-condition>
Compound condition has these components:
#<record &assertion>
#<record &who>
who : "ffi/apply"
#<record &message>
message : " bad arguments.\n"
Terminating program execution.
~ $
----------------------------------------------------------------------
Note that the only difference is the order of the imports.
The '(glut)' library is the one I mentioned in my previous message. :-)
Ed
This program works fine:
----------------------------------------------------------------------
(import (rnrs)
(glut)
(srfi :27 random-bits))
(glutInit (vector 0) (vector ""))
----------------------------------------------------------------------
However, this one:
----------------------------------------------------------------------
(import (rnrs)
(srfi :27 random-bits)
(glut))
(glutInit (vector 0) (vector ""))
----------------------------------------------------------------------
results in an FFI error:
----------------------------------------------------------------------
~ $ rlwrap ~/src/larceny-0.97-bin-native-ia32-linux86/larceny -r6rs
-program /tmp/test-larceny-gl-b.sps
Warning: loading source in favor of stale fasl
file: /home/dharmatech/src/larceny-0.97-bin-native-ia32-linux86/lib/Standard/time.sch
Warning: loading source in favor of stale fasl
file: /home/dharmatech/src/larceny-0.97-bin-native-ia32-linux86/lib/Ffi/ffi-i386.sch
Warning: loading source in favor of stale fasl
file: /home/dharmatech/src/larceny-0.97-bin-native-ia32-linux86/lib/Ffi/ffi-linux-x86.sch
Error: no handler for exception #<record &compound-condition>
Compound condition has these components:
#<record &assertion>
#<record &who>
who : "ffi/apply"
#<record &message>
message : " bad arguments.\n"
Terminating program execution.
~ $
----------------------------------------------------------------------
Note that the only difference is the order of the imports.
The '(glut)' library is the one I mentioned in my previous message. :-)
Ed