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

Need to manually add -lstdc++ for C++ compilation #3533

Closed
toots opened this issue Jun 7, 2020 · 3 comments
Closed

Need to manually add -lstdc++ for C++ compilation #3533

toots opened this issue Jun 7, 2020 · 3 comments

Comments

@toots
Copy link
Contributor

toots commented Jun 7, 2020

I just finished converting ocaml-taglib to dune and I was surprised to discover that I have to manually add -lstdc++ to the linker flags here: https://github.com/savonet/ocaml-taglib/blob/master/src/config/discover.ml#L31 otherwise, the flag isn't registered with the library which prevents linking binaries using it.

Is that intended? Shouldn't dune be doing some of the lifting since it is aware that it's dealing with C++ linked code?

@ghost
Copy link

ghost commented Jun 8, 2020

That's indeed a known issue: #3528

@toots
Copy link
Contributor Author

toots commented Jun 8, 2020

Oh good, sorry I didn't check. It would be nice if that could be documented somewhere, specially the -x c++ parameter, which I've had to use in the discovery binary as well. Thanks for all the work on dune, tho, it's a great tool.

@toots toots closed this as completed Jun 8, 2020
@ghost
Copy link

ghost commented Jun 8, 2020

No problem, we should schedule this work in a few weeks. So I expect the fix to be part of 2.7 or 2.8, so hopefully not too long to wait.

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

No branches or pull requests

1 participant