Yes it did! And adding -lm in front -ljulia too. Interestingly enough on OSX with clang the linking to the math library is not needed.
And this time I used Jeff advice and put:
* jl_init_with_image("/usr/bin","../lib/x86_64-linux-gnu/julia/sys.ji");*
instead of: * jl_init ("/usr/bin"); *
and compiled it with:
*gcc -o embedd -I/usr/include/julia -L/usr/lib/x86_64-linux-gnu/julia
-Wl,-R/usr/lib/x86_64-linux-gnu/julia embedding.c -lm -ljulia*Thanks
Again!
-Eric.
