Reputation: 81
i am the beginner of mingw. pls answer my question some expert. I did the following processes:
But i have "launch failed no binaries" error when i run my program. I have built the program before run. I have also get the following error in console:
Upvotes: 8
Views: 13059
Reputation: 1
What I encountered is: when installing MingW32, by default, it only install "gcc". So in the system, g++ is still the GNU version, so it cannot find MingW32 liblto_plugin-0.dll. I guess the g++ running in your environment is not the one you intend to use.
$ which gcc
/MinGW/bin/gcc
$ which g++
/usr/bin/g++
$ gcc --version
gcc.exe (MinGW.org GCC-8.2.0-5) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ --version
g++.exe (GCC) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Upvotes: 0
Reputation: 3
Check PATH environment variable and look for a path to another MinGW installation. I have two MinGW installed (first one in Falcon C++ IDE directory), and second one I installed by myself. There was two paths to MinGW in system PATH environment variable and that caused the error.
Upvotes: 0
Reputation: 3396
You must add C:\MinGW\bin;
to your user PATH environment variable manually. You can permanently add C:\MinGW\bin;
to your PATH by following the instructions in the "Environment Settings" section on the MinGW Getting Started page.
Source here.
Upvotes: 0