1. Jason McKesson
  2. glLoadGen
  3. Issues
Issue #11 resolved

G++ Warnings - casts

Aleksander Nitecki
created an issue

glLoadGen 0.2.1, MinGW + MSYS. Commandline:

lua LoadGen.lua core_3_3 -style=pointer_cpp

Cpp file, lines where void* are casted into function poniters - "ISO C++ forbids casting between pointer-to-function and pointer-to-object [enabled by default]"

Comments (8)

  1. Jason McKesson repo owner

    NSAddressOfSymbol returns a void*; there's not much I can do about that. So does dlsym. It's rather surprising that something as basic as like dlsym requires illegal casts in C++, but there's no way in these APIs to differentiate between a function symbol and an exported variable symbol.

  2. Log in to comment