[gl2ps] Error in compilation

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Feb 8 10:10:08 CET 2007


G. Durin wrote:
> Dear all,
> I have this error when I try to compile:
> 
> g++ -c -pipe -fno-exceptions -Wall -W -O2 -g -pipe -Wall 
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
> --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic 
> -fasynchronous-unwind-tables -D_REENTRANT -fPIC  -DGL2PS_HAVE_ZLIB 
> -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED 
> -I/usr/lib/qt-3.3/mkspecs/default -I. -Iinclude 
> -I/usr/lib/qt-3.3/include -Itmp/ -o tmp/qwt3d_io_gl2ps.o 
> src/qwt3d_io_gl2ps.cpp
> src/qwt3d_io_gl2ps.cpp: In function ‘GLint Qwt3D::drawDeviceText(const 
> char*, const char*, int, Qwt3D::Triple, Qwt3D::RGBA, Qwt3D::ANCHOR, 
> double)’:
> src/qwt3d_io_gl2ps.cpp:377: error: cannot convert ‘GLfloat*’ to 
> ‘GLfloat’ for argument ‘5’ to ‘GLint gl2psTextOpt(const char*, const 
> char*, GLshort, GLint, GLfloat)’
> make: *** [tmp/qwt3d_io_gl2ps.o] Error 1
> 

Looks like a problem in Qwt3D--the type of the 5th argument is not correct.



> 
> Can someone help me on it?
> 
> Thank you very much
> Gianfranco


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine