Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 vc6 编译器创建了一个简单的库,该库使用方法 add 定义了一个类 Sum,该方法接受两个参数并重新运行一个 int,我已将其包含在我的 QT 应用程序的 pro 文件中
win32:LIBS +=D:\nest_qt_dev\SumLib\Debug\SumLib.lib
但是,我得到一个未定义的引用 `CSum::Add(int, int)' 错误。
我的库代码生成是多线程调试 Dll。
请记住将符号导出到您的库中,然后使用它的头文件和 lib 文件就可以了;
http://doc.qt.io/archives/4.6/sharedlibrary.html