如何在Qt中将目标文件添加到项目中 [英] How to add object files to a project in Qt

查看:1243
本文介绍了如何在Qt中将目标文件添加到项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,一个项目中的链接器在链接到另一项目中的源文件生成的目标文件时遇到问题.有什么方法可以将那些目标文件手动添加到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?

推荐答案

尝试在*.pro文件中使用LIBS指令;

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

LIBS += /path/to/foo.o

这篇关于如何在Qt中将目标文件添加到项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆