[Qt-interest] Compiling App on Visual Studio 2008
Malyushytsky, Alex
alex at wai.com
Sat Aug 27 03:19:02 CEST 2011
If we are talking about dlls,
dll file contains the code which has to be present at run time,
lib file is description of the interface which you need for linking.
Normally both files are built (might be in different folders) when you build dll.
I am not sure what happens in your case, I can only suggest you to check project dependencies.
If they are specified correctly, lib1 should be built first.
Also instead of building whole solution, you can try to build projects one by one manually.
Build lib1 first
If success build lib2.
If it does not work find why.
Mostly likely in this case it does not refer to proper location.
Regards,
Alex
From: qt-interest-bounces+alex=wai.com at qt.nokia.com [mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of Hildebrando Trannin
Sent: Thursday, August 25, 2011 1:01 PM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] Compiling App on Visual Studio 2008
Hi,
I tried to compile my Qt application on Visual Studio 2008.
I used my .pro file to generate the makefile and then executed it with nmake. I have 3 libraries projects and 1 app project. The dependency are as follow: lib2 depends on lib1; lib3 depends on lib1 and lib2; app depends on lib3, lib2 and lib1.
The first library compiled successful, but I got an error in the second one when it tries to link to the first library. The error is: fatal error LNK1181: cannot open input file XXXX.lib
I think that it's trying to use the .lib file, but the compilation generates only the .dll file.
How can I generate a makefile to the second library that uses the dll file of the first one? The compilation on Linux and MingW worked without any problem.
Thanks,
Hildebrando
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
"Please consider our environment before printing this email."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110826/9814a549/attachment.html
More information about the Qt-interest-old
mailing list