Folks,

I'm having problems building a module extension, called "xxx"

I use the attached shell script to build the attached .c file, but when
the "racket" program (at the end of the shell script) is run, I get :

load-extension: expected module `xxx', but found module `xxx' in: [...]/compiled/native/x86_64-linux/3m/xxx_rkt.so

Everything is xxx!
What have I missed?

Help much appreciated.

Racket 5.2 (downloaded from website today) 3m linux x86_64

Thanks,

Tim

--
Tim Brown <tim.br...@cityc.co.uk>  | City Computing Limited            |
T: +44 20 8770 2110                | City House, Sutton Park Road      |
F: +44 20 8770 2130                | Sutton, Surrey, SM1 2AE, GB       |
-----------------------------------------------------------------------|
BEAUTY:  What's in your eye when you have a bee in your hand           |
-----------------------------------------------------------------------'
City Computing Limited registered in London No. 1767817.
Registered Office: City House, Sutton Park Road, Sutton, Surrey, SM1 2AE
VAT number 372 8290 34.
#!/bin/sh

mkdir -p compiled/native/x86_64-linux/3m
raco ctool --xform xxx.c
raco ctool --3m --cc xxx.3m.c
raco ctool --3m --ld compiled/native/x86_64-linux/3m/xxx_rkt.so xxx_3m.o

racket -e '(require "xxx.rkt")'
# load-extension: expected module `xxx', but found module `xxx' in:
# [...]/compiled/native/x86_64-linux/3m/xxx_rkt.so
#include <escheme.h>

Scheme_Object *scheme_initialize(Scheme_Env *env) {
  return scheme_void;
}

Scheme_Object *scheme_reload(Scheme_Env *env) {
  return scheme_initialize(env);
}

Scheme_Object *scheme_module_name(void) {
  return scheme_make_symbol((char*)"xxx");
}
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to