質問

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