; gcc -o sm main.c -I/usr/include -I/usr/include/GL -lm -lGL -lGLU -lglut -lc /usr/bin/ld: /tmp/ccImumYs.o: in function `loadShader': main.c:(.text+0x94): undefined reference to `__glewCreateShaderObjectARB' /usr/bin/ld: main.c:(.text+0xd8): undefined reference to `__glewShaderSourceARB' /usr/bin/ld: main.c:(.text+0xf0): undefined reference to `__glewCompileShaderARB' /usr/bin/ld: main.c:(.text+0x103): undefined reference to `__glewGetObjectParameterivARB' /usr/bin/ld: main.c:(.text+0x13b): undefined reference to `__glewGetObjectParameterivARB' /usr/bin/ld: main.c:(.text+0x169): undefined reference to `__glewGetInfoLogARB' /usr/bin/ld: /tmp/ccImumYs.o: in function `loadShadowShader': main.c:(.text+0x1ee): undefined reference to `__glewCreateProgramObjectARB' /usr/bin/ld: main.c:(.text+0x1fe): undefined reference to `__glewAttachObjectARB' /usr/bin/ld: main.c:(.text+0x218): undefined reference to `__glewAttachObjectARB' /usr/bin/ld: main.c:(.text+0x232): undefined reference to `__glewLinkProgramARB' /usr/bin/ld: main.c:(.text+0x249): undefined reference to `__glewGetUniformLocationARB' /usr/bin/ld: /tmp/ccImumYs.o: in function `generateShadowFBO': main.c:(.text+0x373): undefined reference to `__glewGenFramebuffersEXT' /usr/bin/ld: main.c:(.text+0x38c): undefined reference to `__glewBindFramebufferEXT' /usr/bin/ld: main.c:(.text+0x3c2): undefined reference to `__glewFramebufferTexture2DEXT' /usr/bin/ld: main.c:(.text+0x3ea): undefined reference to `__glewCheckFramebufferStatusEXT' /usr/bin/ld: main.c:(.text+0x41d): undefined reference to `__glewBindFramebufferEXT' /usr/bin/ld: /tmp/ccImumYs.o: in function `setTextureMatrix': main.c:(.text+0x590): undefined reference to `__glewActiveTextureARB' /usr/bin/ld: /tmp/ccImumYs.o: in function `startTranslate': main.c:(.text+0x634): undefined reference to `__glewActiveTextureARB' /usr/bin/ld: /tmp/ccImumYs.o: in function `renderScene': main.c:(.text+0x8a9): undefined reference to `__glewBindFramebufferEXT' /usr/bin/ld: main.c:(.text+0x8c5): undefined reference to `__glewUseProgramObjectARB' /usr/bin/ld: main.c:(.text+0x986): undefined reference to `__glewBindFramebufferEXT' /usr/bin/ld: main.c:(.text+0x9d3): undefined reference to `__glewUseProgramObjectARB' /usr/bin/ld: main.c:(.text+0x9ea): undefined reference to `__glewUniform1iARB' /usr/bin/ld: main.c:(.text+0xa03): undefined reference to `__glewActiveTextureARB' collect2: error: ld returned 1 exit status # exited 1