Qt6 unable to find OpenGL function references
-
You should also add
LIBS += -lopengl32even though this should be done automatically by qmake. -
Hi,
I'm having an issue where Qt isn't able to find functions for OpenGL

What am I doing wrong?@benjysugi
Are you linking with theopengllibrary?I might be wrong about this, but: I believe you are using MinGW (would help if you said stuff like this if you have a problem), but those undefined references begin with
__imp_.... I thought that is only used by MSVC compiler? -
@benjysugi
Are you linking with theopengllibrary?I might be wrong about this, but: I believe you are using MinGW (would help if you said stuff like this if you have a problem), but those undefined references begin with
__imp_.... I thought that is only used by MSVC compiler? -
You should also add
LIBS += -lopengl32even though this should be done automatically by qmake. -
You should also add
LIBS += -lopengl32even though this should be done automatically by qmake.@Christian-Ehrlicher Thanks, that fixed it
