Can't compile plugin for QtCreator(msvc, lib and dll issue)



  • Hi,
    I'm trying to create Qt Creator plugin. I use wizard for it, but when I try compile plugin then I have message:
    error LNK1181: cannot open input file 'Cored.lib'

    I use msvc 2015, I have Qt Creator and Qt compiled by this compiler. It's looks like default plugin project tries to make static link to Cored, but it should link dynamic. How can I force that? MinGW use dynamic linking, but for msvc it doesn't work.

    Best regards,
    Lukasz


  • Lifetime Qt Champion

    Hi,

    No it doesn't, .lib files on Windows are either import libraries or static libraries. In your case, are you sure you have the debug version of that library available ?



  • @SGaist thanx for reply. I have debug version, but I installed it. To solve this issue I had to copy *.lib files to install location. After that plugin compiles.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.