I've been thinking of embedding Julia in one of my applications as a saw 
some example C code that showed how this could be done 
(http://docs.julialang.org/en/latest/manual/embedding/). As an experiment I 
tried to initialize Julia from Delphi (Object Pascal) on Windows 7. 

I downloaded the windows 32-bit binaries and unpacked the files. I noticed 
the file libjulia.dll in bin and discovered that jl_init was exported from 
this dll. I therefore loaded the libjulia.dll and called jl_init (NULL) but 
got an access violation. I assumed cdecl calling conventions (also I tried 
stdcall just in case). I also tried passing the julia home directory (tried 
various combinations) to the init method but that didn't work either.

Is there something else I must do to initialize Julia? Does Julia expect 
certain environment variables to be setup?

Any suggestion gratefully received.

Herbert


Reply via email to