使用标准C ++ dll n静态库创建QT应用程序 [英] Creating QT application with standard C++ dll n static libs

查看:101
本文介绍了使用标准C ++ dll n静态库创建QT应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

希望你做得很好.我有两个小问题:

1)什么是使用标准C ++库(dll和/或静态库)的正确方法.库由我自己创建.例如,MathFuncUtilities lib并且与平台无关,即仅由标准C ++构建,并且在Qt创建者中使用Qt和/或MS VS2008,而我正在开发任何应用程序吗?我想将我的C ++ dll和/或静态库函数与Qt库一起使用.我经历了各种帮助,有点困惑.请尽可能提供帮助.

2)我什么时候应该制作Qt应用程序的.pro文件?我的意思是在写头文件n源文件之前还是在编译之前?有什么猜想吗?

在此先感谢4我们的合作.

Hi Guys,

Hope u r doing great. I do have 2 small questions:

1) What should be the right way to use standard C++ libs(dll and/or static libs. Libs are made by myself. For say, MathFuncUtilities lib and are platform independent, i.e., built by only standard C++) with Qt in Qt creator and/or MS VS2008 while I am developing any application on it? I want to use my C++ dlls and/or static libs functions along with the Qt libs. I have gone through various help n links bt m confused a bit. Plz help if possible.

2) When should I make the .pro file for Qt application? I mean before writing the header n source files or just before the compilation? Any guess?

Thanks in advance 4 ur kind help n cooperation.

推荐答案

请参阅我对问题的评论.不清楚您想要使用库的确切建议.

至于.pro文件,这是一个项目文件.它控制构建的各个方面,包括库的创建及其使用.构建的顺序取决于您的设计,依赖项和先前的构建步骤(先前构建的工件的时间戳).有关步骤的初步信息,请参见:
http://en.wikipedia.org/wiki/Qt_%28framework%29 [ ^ ].

有关详细说明,请参见:
http://doc.qt.nokia.com/qtcreator-2.4/creator-project- manage.html [ ^ ].

库的构建和使用与其他工件的构建和使用没有什么不同.如果您了解静态库和共享库(DLL)的作用,那么您将了解如何进行操作,但是我不知道您对它们的担心.

—SA
Please see my comments to the question. Not clear what exactly advice on using the libraries do you want.

As to .pro file, this is a project file. It controls all aspects of build, including creation of libraries and their use. The order of build depends on your design, dependencies and previous build steps (time stamps of the previously built artifacts). For preliminary information on the steps, please see:
http://en.wikipedia.org/wiki/Qt_%28framework%29[^].

For detailed description, please see:
http://doc.qt.nokia.com/qtcreator-2.4/creator-project-managing.html[^].

The build and use of libraries is not different from build and use of other artifacts. You will understand how to proceed if you understand the role of the static and shared (DLL) libraries, but I don''t know your concerns about them.

—SA


这篇关于使用标准C ++ dll n静态库创建QT应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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