Embedding Julia in Windows

Hi, I have tried to call my tested Julia function from C program on Windows 10. I am using gcc compiler (minGW). When I compile, link and launch my program from the IDE (I am using Code::Blocks IDE) it works fine. The correct function output is displayed on the command line.

However, when I try to run the executable outside the IDE, the library libjulia.dll.a is not found. I am confused how come that Code::Blocks are able to run it but I am not. Can anyone advice what the problem can be? libjulia.dll.a cannot be registered in Windows 10, it tells the library is not designed for windows.

Can libjulia.dll.a be used in Windows?

Welcome to the Julia community! I’m seeing this very late… but:

Julia should also work on Windows, in every way including embedding.

I’m not on Windows to test anything, I think you would use libjulia.dll never heard of .dll.a and doubt that’s they way to use Julia.

[your thread popped up while I was reading about juliac, and it’s quite new, should also work for Julia (1.12) on Windows, but it’s quite new, so I can’t say for sure, I believe it also works to make libraries to embedd, you could try, otherwise use the old ways do do such on Windows.]