Search code examples
qtlinkerobject-files

How to add object files to a project in Qt


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?


Solution

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

    LIBS += /path/to/foo.o