[Scribus] scribus-1.1.7: scribusview.cpp:2206: error: `pow' undeclared (first use this function)

Gansser, Martin MGansser
Thu Jun 17 17:06:02 CEST 2004


Hi,

I tried to compile scribus-1.1.7 on hpux, but it fails with the following error message:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/libart-2.0 -I/usr/local/include -I/usr/local/i
nclude/freetype2 -I/usr/local/include/qt -I.  -pthread -DQT_THREAD_SUPPORT   -O2 -fno-exceptions -fn
o-check-new  -c -o newfile.o `test -f 'newfile.cpp' || echo './'`newfile.cpp
/usr/local/qt/bin/moc ./scribusview.h -o scribusview.moc
source='scribusview.cpp' object='scribusview.o' libtool=no \
depfile='.deps/scribusview.Po' tmpdepfile='.deps/scribusview.TPo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/libart-2.0 -I/usr/local/include -I/usr/local/i
nclude/freetype2 -I/usr/local/include/qt -I.  -pthread -DQT_THREAD_SUPPORT   -O2 -fno-exceptions -fn
o-check-new  -c -o scribusview.o `test -f 'scribusview.cpp' || echo './'`scribusview.cpp
scribusview.cpp: In member function `void ScribusView::HandleGradient(PSLib*,
   PageItem*, double, double)':
scribusview.cpp:2206: error: `pow' undeclared (first use this function)
scribusview.cpp:2206: error: (Each undeclared identifier is reported only once
   for each function it appears in.)
scribusview.cpp:2206: error: `sqrt' undeclared (first use this function)
scribusview.cpp:2236: error: `atan2' undeclared (first use this function)
gmake[3]: *** [scribusview.o] Error 1


the solotion for HPUX is to add the following lines to scribus/scribusview.cpp

#ifdef __hpux
#include <stdio.h>
#include <math.h>
#endif

can someone comit this changes ?

thanks Martin




More information about the scribus mailing list