문제

I'm having issues with wglext.h in MinGW. The version from Visual Studio isn't working (compiler screams about missing defines).

So I tried using mesa-dev and compiling it with MinGW - and I get bug

Fatal error: glapi.h: No such file or directory

Any ideas how to solve this?

도움이 되었습니까?

해결책

So again answering my question.

SOLVED!

You have to link against OpenGL32 and GDI32 after object files (for some unknown reasons).

So instead of (I'm using a makefile, so unpacked it'll look like)

g++ -lopengl32 -lgdi32 main.o -o main

one must use

g++ main.o -lopengl32 -lgdi32 -o main
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top