I need to update a program that I last touched in ~2013. When I use MinGW GCC 4.7.2 from that era the program links and runs fine. When I try to use MinGW GCC 9.2.0 I get 'undefined reference' while linking to an external library, that links just fine with 4.7.2. Would someone be so kind as to tell me what changed between these two versions of the compiler and how I need to fix it? Works fine: gcc --version gcc (GCC) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. make -f version(lib)32._G_ gcc -c -Wall Version.c gcc -o Version.exe Version.o wsc32.lib -s -lcomctl32 -lgdi32 Won't link: gcc --version gcc (GCC) 9.2.0 Copyright (C) 2019 Free Software Foundation, Inc. gcc -c -Wall Version.c gcc -o Version.exe Version.o wsc32.lib -s -lcomctl32 -lgdi32 [snipped long lines and multiple 'undefined reference'] ../x86_64-w64-mingw32/bin/ld.exe: Version.o:Version.c: (.text+0xf0): undefined reference to `__imp_SioInfo' collect2.exe: error: ld returned 1 exit status