> Questo e' lecito e compila:
>
> void DummyPlugin::Render(QAction *a, MeshModel &m, RenderMode &rm, GLAre=
a
> *gla)
> {
> gla->showLog(true);
> }
>
> Mentre questo:
>
> void DummyPlugin::Render(QAction *a, MeshModel &m, RenderMode &rm, GLAre=
a
> *gla)
> {
> gla->setColorMode(GLW::CMxxxx);
> }
>
> ci regala un bell'errore di link.....
in realta' non mi funziona nessuno dei due ... l'errore per entrambi e' que=
sto:
make[1]: Entering directory `/home/mario/src/meshlab/src/meshlabplugins/dum=
my'
g++-3.3 -c -pipe -O2 -w -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN
-DQT_CORE_LIB -DQT_GUI_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtCore -I/usr/include/qt4 -I../.. -I../../../../sf
-I../../../../code/lib/glew/include -Irelease -I. -o release/dummy.o
dummy.cpp
dummy.cpp: In member function `virtual void DummyPlugin::Render(QAction*,
MeshModel&, RenderMode&, GLArea*)':
dummy.cpp:27: error: `showLog' undeclared (first use this function)
dummy.cpp:27: error: (Each undeclared identifier is reported only once for =
each
function it appears in.)
make[1]: *** [release/dummy.o] Error 1
make[1]: Target `first' not remade because of errors.
make[1]: Leaving directory `/home/mario/src/meshlab/src/meshlabplugins/dumm=
y'
make: *** [release] Error 2
make: Target `first' not remade because of errors.
|