[Interest] Usage of QAbstractOpenGLFunctions and derived classes

Yves Bailly yves.bailly at sescoi.fr
Tue Dec 17 11:56:58 CET 2013


Le 17/12/2013 10:21, Thiago Macieira a écrit :
> On terça-feira, 17 de dezembro de 2013 09:49:48, Yves Bailly wrote:
>> (1)
>> When I try to build this program, I get a link error:
>> gl_widget.obj : error LNK2019: symbole externe non résolu "protected: bool
>> __cdecl QAbstractOpenGLFunctions::isInitialized(void)const "
>> (?isInitialized at QAbstractOpenGLFunctions@@IEBA_NXZ) référencé dans la
>> fonction "protected: virtual void __cdecl Gl_Widget::initializeGL(void)"
>> (?initializeGL at Gl_Widget@@MEAAXXZ)
>
> Yes: you're calling a function that is not public. Stop calling
> isInitialized().

It is protected, so "public" for any derived class... if it's not
intended to be used at all, then maybe it might be better to remove
it entirely?

-- 
      /- Yves Bailly - Software developer   -\
      \- Sescoi R&D  - http://www.sescoi.fr -/
"The possible is done. The impossible is being done. For miracles,
thanks to allow a little delay."



More information about the Interest mailing list