Sorry for the braces ^^ 

-----Ursprüngliche Nachricht-----
Von: Robert Caldecott [mailto:[email protected]] 
Gesendet: Mittwoch, 15. Juli 2009 11:22
An: [email protected]
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 <[email protected]>:
>
>
> 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:[email protected]]
> Gesendet: Mittwoch, 15. Juli 2009 10:04
> An: [email protected]
> 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
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
>
> _______________________________________________
> Qt-creator mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator



_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to