[Paraview] need help to compile on opensolaris

Gérard Henry ghenry at cmi.univ-mrs.fr
Thu Nov 20 05:05:25 EST 2008


hello all,
i'm trying to compile paraview-3.4.0, and compile failed here:

"/export/home/henry/projects/ParaView-3.4.0/VTK/Rendering/vtkOpenGLExtensionManager.cxx", 

line 267: Error: The function "glXGetProcAddressARB" must have a prototype.
"/export/home/henry/projects/ParaView-3.4.0/VTK/Rendering/vtkOpenGLExtensionManager.cxx", 

line 267: Error: Using static_cast to convert from int to extern "C"
void(*)() not allowed.

what i see is that vtkOpenGLExtensionManager.cxx contains:
return
static_cast<vtkOpenGLExtensionManagerFunctionPointer>(glXGetProcAddressARB(reinterpret_cast<const 

GLubyte *>(fname)));

and my GL/glx.h contains:
typedef void (*__GLXextFuncPtr)(void);
extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);

i suppose the problem is that compiler considers the above declaration 
different?
I'm not a C++ dev, i just need to compile paraview. If someone can help,

thanks in advance,

gerard



More information about the ParaView mailing list