#192 Multiple definitions in GLXEW when using GLEW_MX


In glxew.h the macros for GLXEW_FUN_EXPORT / GLXEW_VAR_EXPORT are empty when using GLEW_MX. There is a conditional #ifdef GLEW_MX - this results in multiple definitions when linking different translation units that include glxew.h. I temporarily patched it on my local system by removing the conditional and setting GLXEW_FUN_EXPORT to GLEW_FUN_EXPORT and GLXEW_VAR_EXPORT to GLEW_VAR_EXPORT respectively. I cannot see any reason for this construct and it seems wrong. The resulting code worked and I see no value to not define both preprocessor symbols according to the same rules as in core GLEW.


  • Nigel Stewart

    Nigel Stewart - 2012-08-08

    Sorry about that - there is a patch/fix in the git repo.
    Could you try again?

  • Dennis Philipps

    Dennis Philipps - 2012-09-14

    Sorry for getting back to you this late. The GIT version seems to work as expected now. Thanks for the quick fixing!

  • Nigel Stewart

    Nigel Stewart - 2012-09-18
    • status: open --> closed
    • milestone: --> 1.9.0
  • Nigel Stewart

    Nigel Stewart - 2012-09-18

    Closing as fixed and resolved in GLEW 1.9.0.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks