Compiling minimal GLEW application under Cygwin

后端 未结 4 491
别那么骄傲
别那么骄傲 2020-12-17 00:52

Let\'s consider the following program and try to compile it under Cygwin:

#include 
int main(int argc, char** argv)
{
    glutInit(&argc,         


        
4条回答
  •  一个人的身影
    2020-12-17 01:37

    It sounds like you want to link against the native Win32 libraries instead of X11. Add -L/lib/w32api. Otherwise, you need to link against the X11 libraries (-L/usr/X11R6/lib -lX11 -lXi -lXmu) to get rid of the glX* linker errors..

提交回复
热议问题