I was trying to follow this guide: 
http://julia.readthedocs.org/en/latest/manual/embedding/. I ran into an error 
on the first example.

I have the latest prerelease downloaded for OS X from 
http://julialang.org/downloads/. I have
"JULIA_DIR=/Applications/Julia-0.3.0-prerelease-a673e4c4de.app/Contents/Resources/julia"
I got the example to compile with
"gcc -o test -I$JULIA_DIR/include/julia -L$JULIA_DIR/lib/julia -ljulia test.c"
but not with 
"gcc -o test -I$JULIA_DIR/include/julia -L$JULIA_DIR/usr/lib -ljulia test.c" 
as in the guide.

When I ran the test executable, I got an error:

dyld: Library not loaded: @rpath/libjulia.dylib
  Referenced from: /Users/stevend2/PythonProjects/ParallelSparseMatMul.jl/./test
  Reason: image not found
[1]    2528 trace trap  ./test

Any ideas on what's going on? I'd really appreciate your help.

I've also posted this question as https://github.com/JuliaLang/julia/issues/5834

Reply via email to