Ccomp(3) OCaml library Ccomp(3)

# [NAME](#NAME)

Ccomp - Compiling C files and building C libraries

# [Module](#Module)

Module Ccomp

# [Documentation](#Documentation)

Module **Ccomp**  
: **sig end**

Compiling C files and building C libraries

Warning: this module is unstable and part of **Compiler\_libs** .

*val command* : **string -&gt; int**

*val run\_command* : **string -&gt; unit**

*val compile\_file* : **?output:string -&gt; ?opt:string -&gt; ?stable\_name:string -&gt; string -&gt; int**

*val create\_archive* : **string -&gt; string list -&gt; int**

*val quote\_files* : **response\_files:bool -&gt; string list -&gt; string**

*val quote\_optfile* : **string option -&gt; string**

*type link\_mode* =  
| Exe  
| Dll  
| MainDll  
| Partial

*val call\_linker* : **link\_mode -&gt; string -&gt; string list -&gt; string -&gt; int**

2026-10-23 OCamldoc

---

Document: Ccomp(3o) from ocaml 5.5.2-r0 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
