| Anonymous | Login | Signup for a new account | 2013-05-22 12:57 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0004920 | OCaml | OCaml documentation | public | 2009-11-15 17:14 | 2012-09-17 17:44 | ||||||
| Reporter | ecc | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | text | Reproducibility | always | ||||||
| Status | acknowledged | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | 3.11.1 | ||||||||||
| Target Version | 4.00.2+dev | Fixed in Version | |||||||||
| Summary | 0004920: example of linking C main with OCaml runtime needs additional libraries | ||||||||||
| Description | In the manual chapter "Interfacing C with Objective Caml", subsection "Advanced topic: callbacks from C to Caml", sub-subsection "Embedding the Caml code in the C code": 1. It's not necessary to include unix.cma in the ocamlopt command, or -lunix in the gcc command (unless required by the OCaml code, of course) 2. It is necessary to add both "-lm" and "-ldl" at the end of the gcc command line. (on Linux, at least) | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Notes |
|
|
(0006914) doligez (manager) 2012-02-10 17:33 |
About (1): I think that's quite clear from the manual: it includes this sentence: >> For instance, assume the OCaml part of your program uses the Unix library. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2009-11-15 17:14 | ecc | New Issue | |
| 2009-12-08 17:31 | doligez | Status | new => acknowledged |
| 2012-02-10 17:33 | doligez | Note Added: 0006914 | |
| 2012-09-06 16:44 | doligez | Target Version | => 4.00.1+dev |
| 2012-09-17 17:44 | doligez | Target Version | 4.00.1+dev => 4.00.2+dev |
| Copyright © 2000 - 2011 MantisBT Group |