-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
Description
This feature request has been migrated from artifact #1706 on forge.ocamlcore.org. It was assigned to user102.
user102 posted on 2016-11-08 19:53:36:
It is possible to have a CSources for an executable, but it doesn't seem to be taken into account when compiling.
From Dario Texeira:
I've come across an issue with OASIS. Basically I have an executable "exec" that has one module "foo_stubs.c" written in C, which contains a single function "caml_foobar". Now, I've added "CSources: foo_stubs.c" to the "Executable exec" section of my _oasis file. However, upon compilation I get an undefined reference to "caml_foobar" error. I've successfully used C sources with OASIS before, but always in the context of libraries, not executables.