You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5254 Reporter:@glondu Assigned to:@mshinwell Status: resolved (set by @mshinwell on 2016-12-07T17:20:27Z) Resolution: fixed Priority: high Severity: minor Version: 3.12.1+dev Target version: 4.03.1+dev Category: ~DO NOT USE (was: OCaml general) Tags: patch Related to:#8395#4164#4230#6798 Monitored by:@whitequark mehdi
Bug description
C files generated by "ocamlc -output-obj" cannot be compiled with g++ because of multiple declarations. Attached is a patch that fixes that. Additionally, there is also a patch that fixes "deprecated conversion from string constant to 'char*'" warnings.
About the primitives: you shouldn't compile C files with a C++ compiler, as the two have incompatible calling conventions. Or you should wrap the C file in a
extern "C" { ... }
block.
About the "const char *", it was fixed some time ago.
Original bug ID: 5254
Reporter: @glondu
Assigned to: @mshinwell
Status: resolved (set by @mshinwell on 2016-12-07T17:20:27Z)
Resolution: fixed
Priority: high
Severity: minor
Version: 3.12.1+dev
Target version: 4.03.1+dev
Category: ~DO NOT USE (was: OCaml general)
Tags: patch
Related to: #8395 #4164 #4230 #6798
Monitored by: @whitequark mehdi
Bug description
C files generated by "ocamlc -output-obj" cannot be compiled with g++ because of multiple declarations. Attached is a patch that fixes that. Additionally, there is also a patch that fixes "deprecated conversion from string constant to 'char*'" warnings.
File attachments
The text was updated successfully, but these errors were encountered: