默认情况下使用g++而不是arm编译器进行构建
Build is happening by default with g++ instead of arm compiler?
我遇到了一个非常奇怪的问题。我正在用ARM编译器构建我的ARM源代码。我修改了makefile中的CXX字段,使用arm-linux-gnueabihf-g++而不是g++来构建,但在构建时仍然使用g++。有人能帮我一下吗?我的makefile有以下条目
CXX = g++
我将其修改如下
CXX = arm-linux-gnueabihf-g++
不应该使用arm-linux-gnueabihf-g++而不是g++来构建吗?
如果没有构建系统的其余部分,你就不可能知道为什么你看到了你所看到的,但这里有一些一般性的建议:
不要编辑makefile;在命令行上传递所需的值:
make CXX=arm-linux-gnueabihf-g++ <whatever your normal args are>
命令行值覆盖那些在文件中设置的,并且通常被传递到嵌套的makefiles,并覆盖所有其他可能使这复杂化的令人困惑的东西。
如果这不起作用,检查是否有configure
脚本,或者其他你应该使用的东西。
相关文章:
- C/C++编译器通常会删除重复的库吗
- 模板-模板参数推导:三个不同的编译器三种不同的行为
- Win32编译器选项和内存分配
- MSVC多行宏编译器错误
- 静态数据成员的问题-修复链接错误会导致编译器错误
- C++,我收到一个无法理解的编译器错误
- 在线编译器中的分段C++没有打印消息
- 如何解决gcc编译器优化导致的centos双编译器设置中的分段错误
- C/C++预处理器是否可以检测一些编译器选项
- 是否有C++编译器选项允许激进地删除所有函数调用,并将参数传递给具有空体的函数
- C++错误C2600:无法定义编译器生成的特殊成员函数(必须首先在类中声明)
- 我需要知道编译器如何在cpp中使用析构函数
- 编译器如何区分std::vector的构造函数
- ARM C++编译器不会编译具有可变常量成员的结构
- Arm GNU编译器:通过多余的强制转换优化的三进制生成的程序集
- ARM STM32需要兼容的编译器
- 如何使用Arm-Linux-androideabi编译器
- ARM Cortex-A8:使用简单浮点乘法时,来自交叉编译器的不同程序集输出
- arm-none-eabi-g++ 编译器抛出编译错误pthread_exit未在此范围内声明
- 默认情况下使用g++而不是arm编译器进行构建