On Windows 11 with Visual Studio 2022 I can embed Julia (version is 1.10.2) and that works fine. When I test the code inside a sandbox or on a different new computer, the initialisation fails and the error I get is :
Unable to find compatible target in cached code image.
Target 0 (goldmont): Rejecting this target due to use of runtime-disabled features
How do you create JuliaSysImage? Presumably you have differences in the architectures or instruction sets between your workstation and the target, and may need to generate the sysimage for a common architecture.
Architecture should not play a role, since when I test it in a sandbox, it is basically using the same computer hardware, only the windows environment is fresh.
And I also get this when I use jl_init() with no parameters, when it is using its own system image.
Not sure if it is required to recreate the sys image when running on a different machine, even if I restrict those machine to be Windows 10/11 / 64bit