Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error: Using static_cast to convert from int to extern "C"

807736Nov 20 2008 — edited Nov 21 2008
hello 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2008
Added on Nov 20 2008
6 comments
558 views