Search code examples
c++qtshared-librariesstatic-librarieslibxl

Libxl + windows + QT


I installed libxl package file from offcial website. It contains header files in include_cpp folder and libxl.lib in libs folder. I am using QT(cpp) to run my project. I was able to link libxl package to QT in linux (by editing its .pro file by right clicking and adding lib path and include path.). The same in windows is not working. Sometimes it runs the console empty and later on executing again throws an error that .dll files are missing( even when I have added CONFIG += static in .pro file.) I even tried downloading static linking package of libxl and adding the .lib files to QT but still had no good luck.


Solution

  • add this to the INCLUDEPATH: being careful to replace with the correct location of the library

    -isystem "C:\path\to\libxl\"
    

    and report back if that helps. this may be considered a hack but it worked for me a few times when problems arose linking boost libraries in windows