This is a special warning from MingW that states that several dynamic libraries are implicitly linked. It's fine. To fix this, you literally do what warns about it, and specify a parameter:
g++ -o prog file1.o file2.o --enable-auto-import ^^^^^^^^^^^^^^^^^^^^
(By the way, if you are distributing executables for Windows, you may need a link to -static-libgcc
and -static-libstdc++
to avoid dependency on compiler runtime libraries.)
source share