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
Make ocamlc -c recognize .cpp files #6798
Comments
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
Still an issue. |
I think first step is simple - just treating file extensions as C source - and then it will be user responsibility to make C compiler actually a c++ compiler (e.g. via |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
Still want :) |
I'm afraid you'll have to submit a PR yourself, since nobody else seems to care. |
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc. |
Original bug ID: 6798
Reporter: @whitequark
Status: acknowledged (set by @damiendoligez on 2015-04-21T15:29:27Z)
Resolution: open
Priority: normal
Severity: feature
Category: compiler driver
Duplicate of: #5823
Related to: #5254
Monitored by: @ygrek @hcarty
Bug description
Currently a horrible workaround is needed: https://stackoverflow.com/questions/21728826/building-c-code-with-ocamlbuild
Telling ocamlc to treat .cpp files by passing them to $(BYTECC) together with -x cpp option (overridable default at configure time) seems much better.
The commands to link the standard library (like -lstdc++) could also be present in Makefile.config / Config.ml, so that user code would not have to replicate detection in every package.
The text was updated successfully, but these errors were encountered: