cc -o myprog myprog.c -ljulia
and be able to call julia_domath()?edit: reference to julia documentation
[0] http://docs.julialang.org/en/latest/manual/calling-c-and-for...
cc -o myprog myprog.c -ljulia
and be able to call julia_domath()?edit: reference to julia documentation
[0] http://docs.julialang.org/en/latest/manual/calling-c-and-for...
You can find recent binaries here: http://status.julialang.org/
You can also check the dev mailing list: https://groups.google.com/forum/?fromgroups#!forum/julia-dev
There are several aspects to this:
- Julia cannot generate linkable shared libraries, yet.
- There is a fairly small "libjulia" C API (the embedding reference in another comment), but this is a means to interact with/control the program "julia" (for dynamic interop. or IDE use, for example). "libjulia" does not export symbols for arbitrary Julia code.
- It is possible to generate a C-callable function pointer from a Julia function at runtime and to pass this into a C routine controlled by Julia (for example, to pass a comparator to a sorting routine, or an objective function to an optimizer).