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

Installing cppformat using homebrew (macos) #157

Closed
ortho opened this issue May 8, 2015 · 4 comments
Closed

Installing cppformat using homebrew (macos) #157

ortho opened this issue May 8, 2015 · 4 comments

Comments

@ortho
Copy link

ortho commented May 8, 2015

Now. It's possible to install your library using homebrew

brew install cppformat

It will be great to describe this possibility in documentation.

Thanks you for the library!

@vitaut
Copy link
Contributor

vitaut commented May 8, 2015

Thanks for adding support for C++ Format to Homebrew, much appreciated! I've added a small section to Usage. Please let me know if you want to add or change anything there.

@vitaut vitaut closed this as completed May 8, 2015
@skgbanga
Copy link

skgbanga commented Oct 6, 2017

@ortho @vitaut I did brew install fmt as described in the usage section, but I still had to add the library path "/usr/local/Cellar/fmt/4.0.0/lib/libfmt.a" to my compile command.

I was wondering if this is normal?

@vitaut
Copy link
Contributor

vitaut commented Oct 8, 2017

As far as I can see brew install fmt creates a symlink in /usr/local/lib:

lrwxr-xr-x  1 viz  staff  32 Oct  8 14:24 /usr/local/lib/libfmt.a -> ../Cellar/fmt/4.0.0/lib/libfmt.a

Since this directory is on the library search path, you can just do

$ c++ -lfmt ...

@skgbanga
Copy link

skgbanga commented Oct 9, 2017

You are right. I didn't notice it. Thanks for taking a look.

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

3 participants