Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Compiler can't find the library.
Loc888 last edited by Loc888
I compiled one library, i put the .a files into libs, i also add the includes to correct folder.
Then i start a new project, include the stuff into it, then add any random function from the library, and of course it doesn't work. I also follow few tutorials on youtube, and there it does work. What is wrong? There is no error what so ever, just "Undefined reference to" and the function name. The functions are available, also the header files are accessible.
Did you also add something like
LIBS += -L$$PWD/build-MyLibrary/ -lmylibrary
to the .pro file to link to your lib ?
Loc888 last edited by
@mrjj No, no one said i should do it, from what i can see, they just put the libs and includes, and that's it.
Im not sure why it was not mentioned to link to your new lib.
But the error "Undefined reference to" suggest that is needed.