On Tue, Sep 6, 2016 at 4:41 PM simon rss <balabi....@gmail.com> wrote:

>
>
> Every thing seems to be OK, it successfully generated a test.exe
>
> But when I run this test.exe, windows pop up a window says " test.exe
> stopped working" and I got nothing.
>
> What is wrong? How to correctly compile C embedded with julia correctly on
> windows with Mingw-w64 ??
>

Hi Simon,

I think you need to add the bin directory of the Julia installation to your
PATH, and also set the JULIA_HOME directory to that same directory.

Here is an example CMake project that compiles embedding.c, in case that
could simplify things:
 https://github.com/barche/embedding-julia

This is untested on mingw though.

Cheers,

Bart

Reply via email to