-
Notifications
You must be signed in to change notification settings - Fork 232
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
Loading native module from built binary crashes on windows #921
Comments
Once I change:
in the code above for |
The exit code after was -1073741819. Got this at the command prompt via the command:
|
I am interested in the verbose output of |
I also wonder if everything works if you try to just import |
By changing to absolute import, like this:
Then running using: I get the following:
|
Could anyone give me some tips on how to debug this? I'd like to work more on this (specifically with cgen), but I don't really know where to start. :) |
Maybe not much to go on, but running the
|
I am having this issue too when trying to run (eval-string ``
(import spork/json)
(pp spork/json/decode)
``) This gives me the same error code mentioned above of |
I strongly suspect that this is due to incorrect setup of jpm - I am able to compile, load and run spork.json with the latest janet and jpm on my Windows 10 machine. Perhaps jpm and janet were compiled with different visual studios/architectures? |
I've learnt that on Linux you can use
-rdynamic
to load native modules from built binaries. But when looking around this flag doesn't seem to be needed on windows. However, I get crashes when trying to load native modules this way on windows.Here is an example, create this file called
runthing.janet
Then run this in a native tools command prompt:
It should print
lul
, and it does if I dojanet native-thing.janet
, but it does not when running the .exe.The text was updated successfully, but these errors were encountered: