Update the quick start guide

This commit is contained in:
Jeremie Dimino 2017-03-09 12:02:02 +00:00
parent 74e015923a
commit fa95e71565
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ to the =(libraries ...)= field.
Add this field to your =library= or =executables= stanzas: Add this field to your =library= or =executables= stanzas:
#+begin_src scheme #+begin_src scheme
(preprocess (command "cppo -V OCAML:${ocaml_version}")) (preprocess (action (run ${bin:cppo} -V OCAML:${ocaml_version} ${<})))
#+end_src #+end_src
Additionnaly, if you are include a =config.h= file, you need to Additionnaly, if you are include a =config.h= file, you need to
@ -88,7 +88,7 @@ Write this in your jbuild:
(rule (rule
((targets (foo.ml)) ((targets (foo.ml))
(deps (foo.cppo.ml <other files that foo.ml includes>)) (deps (foo.cppo.ml <other files that foo.ml includes>))
(rule (run cppo ${<} -o ${@})))) (rule (run ${bin:cppo} ${<} -o ${@}))))
#+end_src #+end_src
* Defining a library with C stubs * Defining a library with C stubs