Failed so far, sigh. First, CS snapshots in Utah and NW mirrors offer no libracketcs.a so I went ahead and attempted to build CS from the github master. Sadly its `raco` tool is unaware of the `ctool` subcommand, so I'm guessing snapshots are built from your own private fork or something. I then started mixing and matching stuff from snapshot and freshly built github: - raco, boot files and headers from the snapshot, - libracketcs.a from github
Am I doing this C thing wrong? :) Compiling modules with `raco ctool` worked fine. Linking against `libracketcs.a` however failed with a bunch of unresolved symbols like e.g. `CFLocaleCopyCurrent` most of them referenced from `rktio_convert.o`. It wouldn't work anyway since `declare_modules` also failed to resolve and I'm guessing I really need the `libracketcs.a` from the snapshot for that. Another, probably unrelated issue where I'm likely not using the right incantation is linking in Racket.framework. Even with -F path supplied as needed `-framework racket` wasn't found. `man ld` for my platform shows it expects to find (in our case) Racket under Racket.framework so Racket.framework/Racket but all the frameworks you ship have intermediate dirs Version/blabla/Racket. I just copied Racket and boot/ under Racket.framework there to shut the linker up. Am I doing it wrong? https://www.cs.utah.edu/plt/snapshots/current/doc/inside/cs.html is atm quite about calling C. Is it possible or at least in the cards? I'd like to use the API defined in C from Racket. Thank you Matthew! On Friday, 27 March 2020 22:53:42 UTC, Matthew Flatt wrote: > > At Fri, 27 Mar 2020 15:48:13 -0700 (PDT), zeRusski wrote: > > How I might go about embedding Racket CS > > The current development version (as reflected by snapshot builds) now > has support and documentation for that: > > > https://www.cs.utah.edu/plt/snapshots/current/doc/inside/cs-embedding.html > > Of course, let me know if you run into any problems. > > > Matthew > > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/2ae01377-c89e-42ca-8ef9-dd1087da97d4%40googlegroups.com.

