My guess is that your installed version of Julia is 0.3, while you are
building against a source tree that is 0.4+.

On Mon, Oct 12, 2015, 1:45 AM bernhard <[email protected]> wrote:

> Hi all
>
> I am trying out the example shown in
> http://julia.readthedocs.org/en/latest/manual/embedding/
>
> I can compile successfully with gcc (MSYS2) with the following command
>
> gcc.exe -o test -I"C:\Program
> Files\Juno\resources\app\julia\include\julia" -L"C:\Program
> Files\Juno\resources\app\julia\bin" -Wl,-rpath,"C:\Program
> Files\Juno\resources\app\julia\lib\julia" "R:\TariffWatch New
> Repo\algorithms\Julia\Testing\test.c" -lm -ljulia
>
> The test.c file contains the few lines from the documentation. I only
> changed the arguments to jl_init (to the julia bin folder) and
> jl_atexit_hook (to 0).
>
> However when I run the compiled code I get "Exception:
> EXCEPTION_ACCESS_VIOLATION at 0x0 -- uknown function (ip:00000000000000).
>
> Can anybody help me with this?
>
> I note that I did not compile julia (would that be necessary?). I am using
> the binaries from the website.
>
> Thank you.
> Bernhard
>

Reply via email to