简体   繁体   中英

Using Homebrew to install GCC-built boost libraries on Mac OS X

Is it possible to use Homebrew to install boost libraries compiled with GCC (instead of Clang)?

I have tried pointing HOMEBREW_CXX to my Homebrew version of GCC, but it doesn't seem to do the trick.

If not, I can always modify the configure file following the suggestion in this answer:

How to install Boost with specified compiler (say GCC)

brew install boost --cc=gcc-4.9 will do it. install --cc is described in man brew .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM