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

Readme instructions for installing bigint #7

Open
gwerbin opened this issue Oct 15, 2021 · 1 comment
Open

Readme instructions for installing bigint #7

gwerbin opened this issue Oct 15, 2021 · 1 comment

Comments

@gwerbin
Copy link

gwerbin commented Oct 15, 2021

This is more of a note than an "issue" as such.

I needed to specify CFLAGS='--stdlib=libc++' when installing bigint to silence a warning:

clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]

I'm not sure if this is due to some quirk of my own Mac Brew setup, or if it's common to some or all other setups.

@Russoul
Copy link
Owner

Russoul commented Oct 15, 2021

The fact that the bigint library is based on c++ has been a nuisance since the very beginning 😑

So it looks like linking against libc++ is the optimal solution for mac, where
libstdc++ is the linux counterpart.

libstdc++ seems to work for me on mac though, I use nix.

Maybe one just needs to fetch the package that contains libstdc++ via a package-manager of their choice and it will work 🤷

Let me keep this issue open, for future reference.

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

2 participants