Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSources for Executable #560

Open
gildor478 opened this issue Oct 24, 2020 · 0 comments
Open

CSources for Executable #560

gildor478 opened this issue Oct 24, 2020 · 0 comments

Comments

@gildor478
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant