[Qt-interest] Fwd: Fwd: Fwd: qmake and staticlib issue
ami guru
dosto.walla at gmail.com
Tue Apr 21 15:49:30 CEST 2009
If i forward declare a class then i only use the reference or pointer for
that class and we do not instantiate any object of that class.
That what the theory says and i have used that accordingly.
In the GLWidget.h clas i have used the forward declared a class named
GLRender since i am using the pointer of its type.
In thr GLWidget.cpp file i am creating a object of GLRender with the new
operator and there i have included the GLRender.h
It should not complain.
But it does.
Would like to know why?
Regards
Sajjad
---------- Forwarded message ----------
From: John McClurkin <jwm at nei.nih.gov>
Date: Tue, Apr 21, 2009 at 2:23 PM
Subject: Re: [Qt-interest] Fwd: Fwd: qmake and staticlib issue
To: qt-interest at trolltech.com
ami guru wrote:
> Hello Farid,
>
> Thanks a lot for the feedback.
>
> I have tried the absolute path instead of the relative one and it works
> fine now.
>
>
> Now i have another error which i think will be off-topic to bring up here.
>
>
> I am getting the error saying that
>
>
> invalid use of the incomplete type.
>
> When do we have these type of error?
This usually occurs when you forward declare a class but don't include
the header.
>
>
> Regards
> Sajjad
>
> On Mon, Apr 20, 2009 at 6:35 PM, Farid Derradji
> <farid.derradji at itwm.fraunhofer.de
> <mailto:farid.derradji at itwm.fraunhofer.de>> wrote:
>
> Hello Sajjad,
>
> Perhaps you should first check whether your compiled libraries contain
> all required symbols (methods):
>
> objdump --demangle --syms libVrMath.a > libVrMath.txt
> objdump --demangle --syms libDataStructs.a > libDataStructs.txt
> objdump --demangle --syms libOpenGLRender.a > libOpenGLRender.txt
> objdump --demangle --syms libRaytraceMgr.a > libRaytraceMgr.txt
> objdump --demangle --syms libGraphics.a > libGraphics.txt
>
> Hereby *objdump* is a pretty useful tool of the *binutils* collection.
> Note that you need the debug versions of your libraries if you want to
> use Option --syms.
>
>
> Regards
> Farid
>
>
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090421/5cc05c3e/attachment.html
More information about the Qt-interest-old
mailing list