Q:

i386-mingw32-g++: error trying to exec 'cc1plus': execvp: No such file or directory

If I compile this QT c++ program in SuSE Linux
#include <iostream> 
using namespace std; 

int main () 
{ 
cout << "Hello World!"; 
return 0; 
}

When I type 

i386-mingw32-g++ helloworld.cpp 

I get the following error 

i386-mingw32-g++: error trying to exec 'cc1plus': execvp: No such file or directory

Is this because MinGW package which i installed contains only gcc in it.. hence i downloaded gcc-g++-3.4.5.rpm package and just copy pasted i386-mingw32-g++ and cc1plus executable along with C++ include files.
Pls reply.
Thanking You

A:

Ugh. The cc1plus in gcc-g++-3.4.5.rpm is not for mingw32. You need the one for your distro.
e.g. for Fedora 10, use http://sourceforge.net/projects/outmodedbonsai/files/Mingw%20Cross-compiler/mingw-1.10-1.fc10.x86_64.rpm

