Re: [racket-users] Re: Embedding in standard C/C++ leads to segfaults

2015-10-08 Thread Matthew Flatt
The root of the problem seems to be that `-std=c89` disables C preprocessor definitions like `linux`, so definition like `__linux__` must be detected instead. Specifically, on x86-64 Linux, a cascade of preprocessor-based configuration choices cause `mz_long_double` to be either `long double` or `d

[racket-users] Re: Embedding in standard C/C++ leads to segfaults

2015-09-26 Thread Benjamin Saunders
This is on x86_64 linux. To reproduce, write the example to embed.c and run: "gcc -std=c89 -DMZ_PRECISE_GC embed.c -o embed -lracket3m && ./embed 42" On Saturday, September 26, 2015 at 10:31:40 AM UTC-7, Benjamin Saunders wrote: > The example for embedding racket 3m at > http://docs.racket-lang.