Search code examples
windowscompiler-errorspowerpc

powerpc compiler on windows gives "c++ compiler not installed on this system error"


I am trying to use msys powerpc-eabispe-gcc compiler on windows to compile a simple helloworld.cpp program, inorder to generate an elf for powerpc architecture, but I am getting "c++ compiler not installed on this system" error. The bin folder of powerpc-eabispe contains all the exe's, I dont understand why then I get this error??

I used MinGW command prompt to run this command: powerpc-eabispe-gcc.exe -o hello hello.cpp


Solution

  • You need to install the toolchain for the architecture you are targeting. Search for "cctools" / "binutils" / "crosstools" or "ppc cross-compile environment".

    You can also take a look at:

    However, I would encourage you to try this on a linux or on a mac computer. There are far more resources & docs available on the web for cross-compilation on these platforms.