Skip to content

Problem with glBufferData under MinGW GCC 9.2 #311

Open
@Darky-Lucera

Description

@Darky-Lucera

( using CMake 3.16.4, MinGW Makefiles, MinGW 64 GCC 9.2, Windows 10 )

Compiling cubescape example I'm getting this link error:

glbinding/source/examples/cubescape/CubeScape.cpp:172: undefined reference to `gl::glBufferData(gl::GLenum, unsigned long long, void const*, gl::GLenum)'

Curiously it works if I change glBufferData by glBufferDataARB

It seems that both methods are in libglbinding.dll.a:

objconv -dH libglbinding.dll.a | grep -i glbufferdata
ZN2gl15glBufferDataARBENS_6GLenumExPKvS0
_imp__ZN2gl15glBufferDataARBENS_6GLenumExPKvS0
ZN2gl12glBufferDataENS_6GLenumExPKvS0
_imp__ZN2gl12glBufferDataENS_6GLenumExPKvS0

Looking at the code, both methods are quite similar to me.

I'm puzzled. Some clues about what is going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions