[SOLVED] How can i resolve LNK:2019 error for external library
-
Im using external header and cpp files.
headers' directory is ../../../include/foo1/foo2
sources' directory is ../../../src/foo1/foo2so i added to pro file
INCLUDEPATH += ../../../include/foo1/foo2
and
DEPENDPATH += ../../../src/foo1/foo2But im getting LNK:201 unresolved symbol error. How can i fix it.
-
Hi,
You need to link your application to the library
-
How can i do this?
if in pro file which keyword do i have to use? LIBS += ??
-
Yes
@LIBS += -lyour_library_name -Lpath_to_your_library@