[racket-dev] advice on linking against racket in windows

From: John Clements (clements at brinckerhoff.org)
Date: Sat Oct 8 14:00:33 EDT 2011

On Oct 8, 2011, at 10:43 AM, Matthew Flatt wrote:

> At Sat, 8 Oct 2011 10:41:52 -0700, John Clements wrote:
>> 
>> On Oct 8, 2011, at 10:39 AM, Matthew Flatt wrote:
>> 
>>> At Sat, 8 Oct 2011 10:28:58 -0700, John Clements wrote:
>>>> I'm building cross-platform binaries, and one of my platforms is Windows.
>>>> 
>>>> Moreover, I'm calling mzrt_sema primitives from my library, but those are 
>> the 
>>>> only Racket functions I'm calling.
>>> 
>>> The main problem is that the mzrt_ functions are not currently exported
>>> from the Racket DLL. We can change that for future versions, but
>>> they're completely inaccessible from the current DLLs.
>>> 
>>> (On many platforms, all non-`static' functions are exported, so mzrt_
>>> functions are exported anyway. But it doesn't work that way for
>>> Windows.)
>> 
>> ... snip ...
>> 
>>>> 2) Find some racket DLL or .o file and the right scheme.h, and add them to 
>> my 
>>>> Visual Studio 2010 project.
>>> 
>>> The right files are in the "include" and "lib/msvc" directories of your
>>> Racket installation.
>> 
>> I'm slightly confused... your first two paragraphs are saying that number 2 
>> won't currently work, so this is hypothetical, right?
> 
> Yes, sorry --- I meant to insert a line to say "If we export the mzrt_
> functions, then..."

Okay, got it. Thanks!

John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4624 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20111008/9cb5f405/attachment.p7s>

Posted on the dev mailing list.