I recently tried using MinGW for my development goals, but there were a few problems.
It seems he always wants to associate with pthread for some reason. I tried to make a simple hello world in C and got an error like
ld.exe: cannot find -lpthread
Obviously, he is looking for the pthread library and not finding it. I downloaded the library from MinGW-get, and as expected, compilation and linking worked.
However, after removing the executable file for the simple world of hello in C, which includes only stdio.h, the file was still 46k large. The same file, compiled and devoid of gcc on Cygwin, is similar to 9k, as well as MSVC.
Therefore, he complained about the lack of a library. Providing the library fixed the problem and made it work. But the hello-free hello in C is still 46k, and with gcc on cygwin it's 9k.
It is natural to conclude that for some reason MinGW uses the pthread library.
But I cannot find a way to disable MinGW, which wants to communicate with pthread anywhere. Ironically, all I found on google are people who have problems with pthread to work with MinGW.
Is there a way to make MinGW not bind to pthread?
source share