windows - Windows上的powerpc编译器给出 “c++ compiler not

我试图在Windows上使用msys powerpc-eabispe-gcc编译器来编译一个简单的helloworld.cpp程序,以便为powerpc架构生成一个elf,但是却出现“此系统未安装c++编译器”错误。 powerpc-eabispe的bin文件夹包含所有exe文件,我不明白为什么然后收到此错误?

我使用MinGW命令提示符运行此命令:powerpc-eabispe-gcc.exe -o hello hello.cpp

最佳答案

您需要为目标架构安装工具链。
搜索“cctools”/“binutils”/“crosstools”或“ppc交叉编译环境”。

您还可以看一下:

  • Building and Testing gcc/glibc cross toolchains(这可能会起作用)
  • Host/Target specific installation notes for GCC(页面中的搜索powerpc)

  • 但是,我鼓励您在Linux或Mac计算机上尝试此操作。网络上有更多资源和文档可用于在这些平台上进行交叉编译。

    关于windows - Windows上的powerpc编译器给出 “c++ compiler not installed on this system error”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15527766/

    相关文章:

    compiler-errors - 错误: no newline at end of file [-

    android - 如何解决Java Eclipse中的 “The hierarchy of the

    compiler-construction - 未定义对ruserok错误的引用

    perl - "error: variable length array of non-POD el

    android - 如何解决java.lang.NoClassDefFoundError

    perl - 无法编译我的 perl 脚本。让一切正常工作的最简单方法是什么?

    xcode - Intel C++编译器,无法在OS X上打开stdarg.h

    vba - 具有多个条件的Select Case函数不循环

    visual-c++ - 如何针对VES2008编译Greta?

    android - Android Studio 0.2.1错误