Sample Header Ad - 728x90

CentOS 8 Mingw Compile Error with cc1plus

1 vote
1 answer
1245 views
I recently setup a fresh install of CentOS 8 to use the Mingw Compiler for C++ (I believe it's removed from CentOS 7). Everything was installed as follows yum -y groupinstall "Development Tools" yum --enablerepo=PowerTools install mingw32-gcc yum --enablerepo=PowerTools install mingw64-gcc Which did give me the commands I wanted both i686-w64-mingw32-gcc and x86_64-w64-mingw32-gcc (specifically for targeting Windows builds) I am unable to use them though because calling both on a simple cpp file gives the error x86_64-w64-mingw32-gcc: error trying to exec 'cc1plus': execvp: No such file or directory I can still compile for Linux with the g++ command though without any issue but what am I missing to be able to use the Mingw compilers? *UPDATE* By the way this CentOS 8 is running in Docker, I don't know if that makes a difference
Asked by TheLovelySausage (4443 rep)
Sep 29, 2020, 06:50 AM
Last activity: Sep 29, 2020, 08:42 AM