[vtkusers] FLTK+VTK
Christian Pfaffel
flash at itp.tu-graz.ac.at
Sun Nov 19 13:49:41 EST 2000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 17 Nov 2000, Marcelo Costa Oliveira wrote:
[...snip...]
> My new problem is : i think my makefile is correct now but this error
> appear
>
>
> [root at cad5 vtkFlWindow]# make all
> g++ -w -g -D LINUX -I/usr/include/FL -I/usr/local/include/vtk/common
> -I/usr/local/include/vtk/graphics -I/usr/local/include/vtkpatented
> -I/usr/local/include/vtk -c Fl_vtk_Window.cc
> Fl_vtk_Window.cc: In function `void camera_translate(class vtkCamera *,
> float, float, float)':
> Fl_vtk_Window.cc:61: `M_PI' undeclared (first use this function)
> Fl_vtk_Window.cc:61: (Each undeclared identifier is reported only once
> Fl_vtk_Window.cc:61: for each function it appears in.)
> Fl_vtk_Window.cc: In function `void camera_rotate(class vtkCamera *,
> float, float, float)':
> Fl_vtk_Window.cc:80: confused by earlier errors, bailing out
> make: *** [Fl_vtk_Window.o] Error 1
>
> Exist any probably of error in program (in case M_PI undeclared) or my
> makefile is rong .
[...snip...]
Hello Marcelo,
for M_PI to be defined you have to include 'math.h', thus add the
following line to 'Fl_vtk_Window.cc' :
#include <math.h>
That should do the trick,
Christian Pfaffel
PGP-Key: http://fubphpc.tu-graz.ac.at/~flash/pubkey.gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org
iD8DBQE6GCDLzNp7/ndBhMQRAvpKAJ0RJP/syBE1JZRA1F0O2mGLOMTcoACdGsJ4
UjjPcRh27ubRIl4DWOZ0vaI=
=9+ee
-----END PGP SIGNATURE-----
More information about the vtkusers
mailing list