c++ - Path not found in .pro file in Qt -
in .pro file in qt project, have used these 2 lines adding necessary libs.
libs += -l "../../lib/bin/libname.a" libs += -l "../../rfm2g/winver/libname.lib" error: ../../rfm2g/winver/libname.lib: no such file or directory
the compiler found file libname.a, not find libname.lib, although relative path both files correct. have idea?
the -l
option wants directory -l
search, not path actual library.
so should either write e.g.
libs += -l../../lib/bin -lname libs += -l../../rfm2g/winver -lothername
or link them directly
libs += ../../lib/libname.a libs += ../../rfm2g/winver/libname.lib
also make sure paths are correct. if change build directory, , try list files (using ls
or dir
depending on platform) using paths have, can list both files?
Comments
Post a Comment