[racket] CGC embedding on win64

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Dec 31 09:43:08 EST 2010

At Fri, 31 Dec 2010 12:39:23 +0100, ugo wrote:
>  I'm following the "Inside: Racket C API" guide, section 1.4.1
> "Embedding Racket into a Program" to learn how to embed a racket
> interpreter into my program: When I compile the sample code on win64
> I'm  getting the following error at link time:
> "error LNK2019: unresolved external symbol
> __imp_scheme_external_get_thread_local_variables referenced in
> function scheme_get_thread_local_variables"

This is now fixed in the git repo.

> Also, if I try to add the
> static __declspec(thread) void *tls_space;
> ...
> scheme_register_tls_space(&tls_space, 0);
> code as suggested in the guide I get an "identifier not found error"

I've fixed the docs to say that this is only needed for 32-bit Windows.

Thanks for the report!

Posted on the users mailing list.