Re: [racket-dev] unable to embed racket in a C++ program

2012-09-24 Thread Dan Liebgold
Ok, that gets me past the missing collection exception. Now it crashes inside libracket3m_8bh1a8.dll. Here's the callstack... this is the stock 5.3 distribution so a stock map file may help: libracket3m_8bh1a8.dll!0f548983() [Frames below may be incorrect and/or missing, no symbols loaded for

Re: [racket-dev] unable to embed racket in a C++ program

2012-09-24 Thread Dan Liebgold
Eh, scratch that last crash. My erroneous book-keeping with registered locals. Carry on... On Mon, Sep 24, 2012 at 9:58 AM, Dan Liebgold dan.liebg...@gmail.comwrote: Ok, that gets me past the missing collection exception. Now it crashes inside libracket3m_8bh1a8.dll. Here's the callstack...

Re: [racket-dev] unable to embed racket in a C++ program

2012-09-22 Thread Matthew Flatt
The %RACKETDIR% in scheme_make_path() isn't going to get expanded as an environment variable. You'll have to use getenv() directly: a[0] = scheme_make_path(getenv(RACKETDIR)); a[1] = scheme_make_path(collects); Scheme_Object * collectPath = scheme_build_path(2, a); Scheme_Object *

[racket-dev] unable to embed racket in a C++ program

2012-09-21 Thread Dan Liebgold
I'm having a terrible time trying to embed Racket 5.3 in a C++ program. Please take a look at https://gist.github.com/3764529 and tell me where I'm going wrong. This is the output I get: racket/base: standard-module-name-resolver: collection not found collection: racket in collection