Skip to content

Commit

Permalink
update compile example in embedding docs [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
mlubin committed Dec 19, 2015
1 parent 48af843 commit 18c0b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/manual/embedding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ We start with a simple C program that initializes Julia and calls some Julia cod

In order to build this program you have to put the path to the Julia header into the include path and link against ``libjulia``. For instance, when Julia is installed to ``$JULIA_DIR``, one can compile the above test program ``test.c`` with ``gcc`` using::

gcc -o test -I$JULIA_DIR/include/julia -L$JULIA_DIR/usr/lib -ljulia test.c
gcc -o test -fPIC -I$JULIA_DIR/include/julia -L$JULIA_DIR/usr/lib test.c -ljulia

Alternatively, look at the ``embedding.c`` program in the Julia source tree in the ``examples/`` folder. The file ``ui/repl.c`` program is another simple example of how to set ``jl_options`` options while linking against ``libjulia``.

Expand Down

0 comments on commit 18c0b82

Please sign in to comment.