Skip to content

[5.2 & 5.3] Compiling C++ code using the OCaml C API results in name-mangled caml_state on Cygwin #13541

@kit-ty-kate

Description

@kit-ty-kate

Trying to compile opam (which uses C++ through mccs) on Cygwin with the 5.3 branch at 162a7f4, fails with:

  ** Cannot resolve symbols for descriptor object:
   _ZTH10caml_state
  File "caml_startup", line 1:
  Error: Error during linking (exit code 2)

Whereas it compiles just fine with OCaml 4.14.2 with the same environment.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions