[plt-scheme] exe which uses C extension

From: Alex Ott (ott at jet.msk.su)
Date: Tue Feb 10 03:57:03 EST 2004

>>>>> "RS" == Ron Stanonik writes:
 RS>   For list-related administrative tasks:
 RS>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

 RS> I'm trying to create an executable (mzc --exe) which uses a C extension.

 RS> If I start mzscheme and (load-extension "hello.so"), then I can (hello).
 RS> But if I compile the following, I get an error.
 RS>   ;arf.ss
 RS>   (module arf mzscheme
 RS>     (load-extension "hello.so")
 RS>     (hello))

rename hello.c in hellomod.c, then compile and put .so in
compiled/native/i386-linux/ and then use as

 (module arf mzscheme
  (require 
    "hellomod.ss")
   (hello))


-- 
With best wishes, Alex Ott
Jet Infosystems,       http://www.jetinfosoft.ru/
                       +7 (095) 411 76 01



Posted on the users mailing list.