Linker (ld v2.23.2 from MinGW) error at form: -L<SOMEDIR> -l<lib1 -l<lib2>,
问题 Have ld v2.23.2 from mingw-builds 4.8.0 32bit suite. In my project in a directory there are libs: libitpp.a and libitpp.dll.a. The first is simply static lib, the second is import library to correspondent shared lib (DLL on Windows). I tell linker to link there libs in following form: -L$$ITPP_DIR/libs -litpp and the linker always chooses the second lib (libitpp.dll.a), but I want the first (libitpp.a), because "-litpp" matches it exactly. At explicit instruction: $$ITPP_DIR/libs/libitpp.a