I have a void pointer returned by dlsym(), I want to call the function pointed by the void pointer. So I do a type conversion by casting:
void *gptr = dlsym(
This compiles in Visual Studio without using reinterpret cast:
void *ptr; int (*func)(void) = (int(*)(void))ptr; int num = func();