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?