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

_______________________________________________
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to