[Qt-creator] Using a .lib?
Ladnar, Marc
Marc.Ladnar at ksab.kroschu.com
Wed Jul 15 11:52:14 CEST 2009
Sorry for the braces ^^
-----Ursprüngliche Nachricht-----
Von: Robert Caldecott [mailto:robert.caldecott at gmail.com]
Gesendet: Mittwoch, 15. Juli 2009 11:22
An: qt-creator at trolltech.com
Betreff: Re: [Qt-creator] Using a .lib?
This didn't work for me at first and I got the following error:
../Tests.pro:12: Parse Error ('debug')
Error processing project file: ../Tests.pro
Exited with code 3.
To fix it I needed to move the braces:
debug {
LIBS += your_debug_lib.lib
}
release {
LIBS += your_release_lib.lib
}
Again, some semblance of support for this in Qt Creator would be on my
wish list for a future release. :)
2009/7/15 Ladnar, Marc <Marc.Ladnar at ksab.kroschu.com>:
>
>
> in your .pro file you can add something like this:
>
> debug
> {
> LIBS += your_debug_lib.lib
> }
> release
> {
> LIBS += your_release_lib.lib
> }
>
>
> Marc
>
>
> -----Ursprüngliche Nachricht-----
> Von: Robert Caldecott [mailto:robert.caldecott at gmail.com]
> Gesendet: Mittwoch, 15. Juli 2009 10:04
> An: qt-creator at trolltech.com
> Betreff: [Qt-creator] Using a .lib?
>
> I have created a project that consists of a Qt GUI and a C++ library.
> The GUI depends on the library project, but fails to link as it cannot
> find any of the library functions. How do I tell the GUI project to
> link with the .lib? Do I simply add the .lib to the list of files?
> If so, how do I have the project use the debug lib for debug builds
> and the release lib for release builds?
>
> I was hoping that the Project Dependency page would of taken care of
> this for me.
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
_______________________________________________
Qt-creator mailing list
Qt-creator at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator
More information about the Qt-creator-old
mailing list