与其他GCC一起使用自制软件

编程入门 行业动态 更新时间:2024-10-28 08:19:06
本文介绍了与其他GCC一起使用自制软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经使用 homebrew-alternatives gcc 公式安装了 gcc-4.6 ,但我无法让它使用GCC来安装其他公式。特别是Open-MPI和boost。

有人知道如何让Homebrew使用这个新的编译器吗?

谢谢!

解决方案

现在这些答案都已经很老了。看来最近的自制软件版本有一个'-cc'选项,可以让你选择c编译器来使用。例如

brew install --cc = gcc-6< package-name>

将使用gcc的brew版本进行安装

I've installed gcc-4.6 using the homebrew-alternatives gcc formula, but I can't seem to get it to use that GCC to install other formulas. Specifically Open-MPI and boost.

Does anyone know how to make Homebrew use this new compiler?

Thanks!

解决方案

These answers are all fairly old now. It seems that recent versions of homebrew have a '--cc' option that enables you to select the c compiler to use. For example

brew install --cc=gcc-6 <package-name>

will install using the brew version of gcc

更多推荐

与其他GCC一起使用自制软件

本文发布于:2023-10-28 02:39:22,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:与其他   软件   GCC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!