I386-mingw32-g ++: error trying to execute exec 'cc1plus': execvp: no such file or directory

If I compile this QT C ++ program on 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 execute exec 'cc1plus': execvp: There is no such file or directory

This is because the MinGW package I installed contains only gcc in it. So I downloaded the gcc-g ++ package - 3.4.5.rpm and simply copied the plug-in i386-mingw32-g ++ and cc1plus executables along with the C ++ include files.

Answer Pls. Thank you

+3
source share
3 answers

:

This means that your shell can find the GNU compiler g ++ interface, but this interface could not find cc1plus, the actual C ++ compiler; This can find cpp, the preprocessor, it has already run. Go to the directory where the external g ++ interface is saved (type: "which is g ++") and find the cc1plus file in the same directory or subdirectory. If it is not there, your compiler installation is broken; if he is his configuration passed berzerk.


Also, see this thread .

+1
source

Source: https://habr.com/ru/post/1711782/


All Articles