[racket] Make Install Flag for Copying libmzgc

2014-03-06 Thread Cody Eilar
What is the flag needed when buidling for Unix/Linuxto include the libmzgc stuff? I'm currently using ./configure --enable-shared --enable-libs --enable-xonx What I have been doing is manually copying over the .so files after running make & make install from /build/racket/.libs to my ${prefix}/l

[racket] Embedding Racket raco ctool --c-mods

2014-03-04 Thread Cody Eilar
Hello, I recently downloaded racket 6 on my linux machine and built it from source. I attempted to run the command "raco ctool --c-mods base.c ++lib racket/base" and I got an error that said that ++lib is an unknown flag. I then found that this was an issue back in 2010 after digging around in

Re: [racket] Loading or Requiring a Module

2014-02-11 Thread Cody Eilar
ou create "myCollection" and put "myModule_rkt.so" in > > myCollection/compiled/native/x86_64/3m/ > > then you'll be able to import it from anywhere using > > (require myCollection/myModule) > > > > At Mon, 10 Feb 2014 11:20:15 -1000, Cody Eil

[racket] Loading or Requiring a Module

2014-02-10 Thread Cody Eilar
Lately I have been using (require "myModule.rlt") to access some extensions that I wrote in C. The caveat with this is that I have to put my extensions in the "special" directory compiled/native/x86_64/3m. This will end up to be a major problem because I need my extensions accessible from anywhere

[racket] Racket Global Extensions

2014-02-07 Thread Cody Eilar
In order to require an extension, your racket file must have a subdirectory called "compiled" where your shared objects live. What if I wanted my extension to be visible every? Where is the best place to put my extension in the racket directory? Thanks Racket Users list: h

Re: [racket] C++ Extensions and Classes

2014-02-06 Thread Cody Eilar
de -- into a > separate file and have both modules include it? I figure I still must > be missing something. > > On Thu, Feb 6, 2014 at 7:38 PM, Cody Eilar wrote: > > Hmmm, I haven't had to wrap anything using extern C because all the > function > > prototypes are in

Re: [racket] C++ Extensions and Classes

2014-02-06 Thread Cody Eilar
be given > un-mangled names for the linker to use. > > On Thu, Feb 6, 2014 at 4:56 PM, Cody Eilar wrote: > > I understand that, the issue is that I have to provide three functions > that > > are not static so that I can make my c++ code known to scheme. Those > > functio

Re: [racket] C++ Extensions and Classes

2014-02-06 Thread Cody Eilar
at 02:16:54PM -1000, Cody Eilar wrote: > > > But what I really want is: > > > > > > Foo_ext.h: > > > > > > func1_racket_ext() { /*... do racket stuff and run func1() */} > > > > > > /* Scheme initializes etc... */ > > > >

[racket] C++ Extensions and Classes

2014-02-05 Thread Cody Eilar
> > > > I asked this same question on the dev side but didn't get any > response, so I thought this list might be more appropriate. So I have been > writing some racket extensions for some C++ classes using the tutorial ( > http://docs.racket-lang.org/inside/overview.html) on the racket site