Original Post
code: #include #include #include #include using namespace std; int main(int argc, char **argv) { glutInit(&argc, argv); glewInit(); if (GLEW_ARB_vertex_shader && GLEW_ARB_fragment_shader) cout<<("Ready for GLSL\n"); else { cout<<("Not totally ready :( \n"); exit(1); } glutMainLoop(); } --------------------------------- error: G:\c>g++ glsltest.cpp -lglew32 -lopengl32 -lglut32 C:\DOCUME~1\Sdf\LOCALS~1\Temp/ccsRbaaa.o:glsltest.cpp:(.text+0x1ad): undefined reference to
_imp____GLEW_ARB_vertex_shader' C:\DOCUME~1\Sdf\LOCALS~1\Temp/ccsRbaaa.o:glsltest.cpp:(.text+0x1b7): undefined reference to _imp____GLEW_ARB_fragment_shader' collect2: ld returned 1 exit status could anyone tell me how to solve this? than ks