How to add object files to a project in Qt

wrongusername picture wrongusername · Jan 10, 2011 · Viewed 7.3k times · Source

Currently the linker in one project has problems linking to object files generated by source files in another project. Is there some way to manually add those object files to Qt?

Answer

ismail picture ismail · Jan 10, 2011

Try using the LIBS directive in your *.pro file;

LIBS += /path/to/foo.o