New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Foreign functions not working on Windows MSYS2 MinGW32 #614
Comments
Hmm it works for me. Few points, assuming you are on Win64;
|
... and same for Win32. On Win32, they will use different calling convention and it might describe what you see -- I (weakly) guess calling back from MSYS chibi-scheme to MinGW32 app causing crash. |
Compiling it against MSYS does seem to make it work. Is there definitely no safe way to build chibi scheme with MinGW? I was hoping to use it as an extension language for an SDL2 program. |
I'll try to fix Makefile for MinGW. Meanwhile, CMakeLists.txt is sort-of (written by me) -- it will generate static library by default. |
Ugh, that was my own MSYS installation issue.. With MSYS fresh install and fresh checkout chibi-scheme Git, I was able to build MinGW32/64 chibi-scheme with To wrap-up:
|
Would you mind explaining the steps you took to get from a fresh install of MSYS to getting a functioning build? |
... I'm still struggling with creating reliable reproduction (for both success/fail) on MinGW.. But, on MSVC, I can reliably recreate issue seemingly matching with yours. It raises "undefined variable" exception while evaluating Created: https://github.com/okuoku/issue614 |
Adding @ashinn : Does it intentional that |
Disabling green threads worked! Thanks :) |
I have a simple test program for using
sexp_define_foreign
:This works correctly on Linux, printing "Hello, World" to stdout. However when running on Windows in MSYS2, the
sexp_eval_string
appears to do nothing and thesexp_debug
causes a Segmentation Fault.The text was updated successfully, but these errors were encountered: