do you use a 0.3 prerelease? If I recall correctly passing NULL also did not work when I embedded Julia in C using MSVC. I am currently not sure if I then passed the Julia installation dir or some of the subdirs (bin or lib)
Am Montag, 9. Juni 2014 06:59:38 UTC+2 schrieb Herbert Sauro: > > 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 > > >
