mercredi 25 mars 2015

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 all Ok.


What are the rules linker use to find libraries at -l"lib" instruction?


Thanks in advance.


Aucun commentaire:

Enregistrer un commentaire