Error: Using static_cast to convert from int to extern "C"
807736Nov 20 2008 — edited Nov 21 2008hello all,
following my precedent post http://forums.sun.com/thread.jspa?threadID=5349240, i have this error:
line 267: Error: Using static_cast to convert from int to extern "C"
void(*)() not allowed.
and the line 267 contains:
266 #ifdef VTK_USE_GLX_GET_PROC_ADDRESS_ARB
267 return
static_cast<vtkOpenGLExtensionManagerFunctionPointer>(glXGetProcAddressARB(reinterpret_cast<const
GLubyte *>(fname)));
268 #endif //VTK_USE_GLX_GET_PROC_ADDRESS_ARB
This is related to Paraview that needs OpenGl libs (or Mesa), and in glx.h, there is:
#ifdef __cplusplus
extern "C" {
#endif
...
typedef void (*__GLXextFuncPtr)(void);
extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
Compiling with g++ from pkg:/SUNWgcc@3.4.3-0.101, the problem never appears, it's only related to use of sunstudio, as i said in my previous post.
I already asked on paraview mailing lists, but got no answer so far.
Thanks,
gerard