@SHIPWECK Works on my end (but with MSYS2 GCC). Are you sure you're adding this flag to the right of
testing.cpp
? -l
have no effect when specified to the left of source/object files.