N
N
Nordman992019-09-29 09:46:42
C++ / C#
Nordman99, 2019-09-29 09:46:42

Mingw-w64 does not want to compile anything, how to fix it?

Hello everyone, tell me what to do, I downloaded mingw-w64, installed it, set the paths to system variables ess, but
I decided to start by compiling a typical Hello World in C ++:

#include <iostream>

int main()
{
    std::cout << "Hello World!\n";
}

But it keeps throwing an error:
PS C:\progs> x86_64-w64-mingw32-g++ Hello.cpp -o hello.exe
c:/mingw64/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lstdc++
c:/mingw64/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_s
c:/mingw64/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_s
collect2.exe: error: ld returned 1 exit status

And just in case, I tried all compilers for C / C ++ from the set, g ++, gcc, x86_64-w64-mingw32-c ++.exe,
x86_64-w64-mingw32-g ++. exe, x86_64-w64-mingw32-g ++ -4.8.3. exe, x86_64-w64-mingw32-gcc.exe, x86_64-w64-mingw32-gcc-4.8.3.exe all the same error output
System - Windows

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question