| Anonymous | Login | Signup for a new account | 2013-05-19 17:02 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 | ||||||
| 0005733 | OCaml | OCaml documentation | public | 2012-08-17 15:02 | 2012-11-15 15:30 | ||||||
| Reporter | gerd | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | feature | Reproducibility | have not tried | ||||||
| Status | confirmed | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | 4.00.0 | ||||||||||
| Target Version | Fixed in Version | ||||||||||
| Summary | 0005733: Feature: Recommend ocamlc as driver for compiling C sources for stublibs | ||||||||||
| Description | Basically, it is up to the user how to call the C compiler for compiling stublibs. However, in many build systems I see that users do it the wrong way (e.g. hardcode the compiler "gcc", or forget to pass switches like -fPIC which are sometimes required). My wish is that the section "Interfacing C with OCaml" includes examples how to do it right - which is absolutely simple, because you just need to use ocamlc as driver even for C sources. There could e.g. be a new section before "Statically linking C code with OCaml code" about "Compiling C code". Contents: - How to use ocamlc as driver for C sources: Sample command - Mention that the stdlib is automatically in the include path - Mention that the switches are ok for dynamically loadable code - The created .o files can be args of ocamlmklib - use -I, -ccopt, -cclib to pass args - Mention that ocamlc -config can be used to extract the compiler path and switches if lower-level calls are needed | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-08-17 15:02 | gerd | New Issue | |
| 2012-11-15 15:30 | doligez | Status | new => confirmed |
| Copyright © 2000 - 2011 MantisBT Group |