阅读:1227回复:0
交叉编译引起的错误
最近欲将一个x86上的linux c++程序交叉编译成mips平台上的可执行程序时,出现了路下错误:
/opt/hardhat/previewkit/mips/fp_le/bin/../lib/gcc-lib/mipsel-hardhat-linux/2.95.3/include/new: At top level: /opt/hardhat/previewkit/mips/fp_le/bin/../lib/gcc-lib/mipsel-hardhat-linux/2.95.3/include/new:28: `operator new\' takes type `size_t\' as first parameter /opt/hardhat/previewkit/mips/fp_le/bin/../lib/gcc-lib/mipsel-hardhat-linux/2.95.3/include/new:29: `operator new\' takes type `size_t\' as first parameter /opt/hardhat/previewkit/mips/fp_le/bin/../lib/gcc-lib/mipsel-hardhat-linux/2.95.3/include/new:32: `operator new\' takes type `size_t\' as first parameter /opt/hardhat/previewkit/mips/fp_le/bin/../lib/gcc-lib/mipsel-hardhat-linux/2.95.3/include/new:33: `operator new\' takes type `size_t\' as first parameter /opt/hardhat/previewkit/mips/fp_le/bin/../lib/gcc-lib/mipsel-hardhat-linux/2.95.3/include/new:38: `operator new\' takes type `size_t\' as first parameter /opt/hardhat/previewkit/mips/fp_le/bin/../lib/gcc-lib/mipsel-hardhat-linux/2.95.3/include/new:39: `operator new\' takes type 所用的交叉编译器是mips_fp_le-gcc的toolchain包括g++编译器,不知道是什么原因, |
|