Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

cannot find -lcurl, unsure on how to manipulate INCLUDEPATH & LIBS



  • hi qt users, today is my first day start using qtcreator. I am rather unsure what to put under INCLUDEPATH and LIBS into my .pro file, can someone please enlighten me?

    Below is the error I've faced: cannot find -lcurl
    C:/Qt/Qt5.14.1/Tools/mingw730_64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcurl
    collect2.exe: error: ld returned 1 exit status
    mingw32-make: *** [Makefile:81: 1009Project.exe] Error 1
    01:33:46: The process "C:\Qt\Qt5.14.1\Tools\mingw730_64\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project 1009Project (kit: Desktop Qt 5.14.1 MinGW 64-bit)
    When executing step "Make"


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You likely are missing the -L argument to add the path to the folder where the library can be found.


Log in to reply