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
Linker errors on Windows msvc #9
Comments
This seems a lot like mangling problem. These are all the FFI functions. Unfortunately I don't have windows machine to play with it. Could you please provide the generated |
So indeed this looks like a mangling problem because of fastcall convention, that nim generates. Could I ask you to try and mark some C function (e.g. stbi_load in load_image_impl.nim) as N_RAW_NIMCALL? And test whether it helps the linker find it? STBIDEF stbi_uc * N_RAW_NIMCALL stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)
{
... |
Thanks @yglukhov that fixed the linker error for the first one I tried :) will close after I've fixed them all |
* - fix galaxy s9 blue screen * - fix linux build machine
I get errors at the linking stage about the stb_image functions
I tried making a .def file and compiling with
nim c --passL:"/DEF:win.def" --parallelBuild:1 main
that was all I could think of doingThe text was updated successfully, but these errors were encountered: