[Qt-interest] Splitting library?
Ross Driedger
ross at earz.ca
Wed Feb 10 20:44:53 CET 2010
On 10-Feb-10, at 1:49 PM, qt-interest-request at trolltech.com wrote:
> Message: 3
> Date: Wed, 10 Feb 2010 18:48:49 +0000
> From: Anatoly Burakov <burakov.anatoly at googlemail.com>
> Subject: Re: [Qt-interest] Splitting library?
> To: qt-interest at trolltech.com
> Message-ID: <4B72FF91.2010109 at gmail.com>
> Content-Type: text/plain; charset="utf-8"
[...]
> Well, yes, it is a linking error - but still it is an error, and i
> would
> like to know how to fix it.
On a command line level, this will depend on what compiler/liner you
are using.
If you are using qmake, your .pro file can include the libraries for
linking by including something like:
LIBS += ../../lib/macx/libmylib.a
qmake will adjust the Makefile as required.
Another small point, modern C++ practice uses the header file:
#include <cmath>
and not
#include <math.h>
Ross Driedger
ross_at_earz.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100210/c66efbbc/attachment.html
More information about the Qt-interest-old
mailing list