[Larceny-users] ctools flag for 64 bit systems.
Ray Racine
ray.racine at comcast.net
Thu Oct 18 19:38:30 EDT 2007
FYI,
Nice to see the FFI using cc to determine offsets in cstructs.
I was segfaulting on my AMD64, Linux system however as gcc defaults to
64-bit compilation.
After adding the -m32 flag to the cc options its working fine.
I have a bit of code from awhile back where I did a hand layout for
using Larceny with libusb. I'll try and redo it this weekend to use the
ctools approach.
$ svn diff foreign-ctools.sch
Index: foreign-ctools.sch
===================================================================
--- foreign-ctools.sch (revision 5010)
+++ foreign-ctools.sch (working copy)
@@ -188,6 +188,7 @@
(string-append
cc " "
include-directives
+ " -m32 "
" -D_XOPEN_SOURCE=500 "
" -o " exe-path
" " c-src-path)))))
More information about the Larceny-users
mailing list