В результате сборки С исходника копилятором(линкером) из пакета MinGW выдаются следующие ошибки: C:\Users\agapiy\AppData\Local\Temp\ccFLeFFO.o:Sample_SimpleOpenGL.c:(.text+0x1c) : undefined reference to `__glutInitWithExit' C:\Users\agapiy\AppData\Local\Temp\ccFLeFFO.o:Sample_SimpleOpenGL.c:(.text+0x37) : undefined reference to `__glutCreateWindowWithExit' C:\Users\agapiy\AppData\Local\Temp\ccFLeFFO.o:Sample_SimpleOpenGL.c:(.text+0x52) : undefined reference to `__glutCreateMenuWithExit'.........
Вся фигня из-за декорирования имен, вставляем в GL/glut.h #ifdef __MINGW32__ #define APIENTRY __stdcall #define CALLBACK __stdcall #endif
И все должно работать....
|