Update to my request: I used msys on the source file glew-1.9.0 and obtained the following-
glew32.dll, libglew32.a and libglew32.dll.a. I put glew32.dll in C:\windows\sysWOW64.
The other two went into ....\MinGW\lib
The headers are in the correct location. Then in the project I have linker options:glew32,freeglut,opengl32,glu32,winmm,gdi32 in that order.
Problem ch1.1 from openGLBook works fine so freeglut is O.K. Problem ch1.2 which adds glew give the following list of errors.||=== chapter1.2, Debug ===|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\crt2.o:crt1.c|| undefined reference to `SetUnhandledExceptionFilter@4'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\crt2.o:crt1.c|| undefined reference to `ExitProcess@4'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\crtbegin.o:cygming-crtbegin.c|| undefined reference to `GetModuleHandleA@4'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\crtbegin.o:cygming-crtbegin.c|| undefined reference to `GetProcAddress@8'|
obj\Debug\main.o||In function `glutInit_ATEXIT_HACK':|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\GL\freeglut_std.h|612|undefined reference to `_imp____glutInitWithExit@12'|
obj\Debug\main.o||In function `glutCreateWindow_ATEXIT_HACK':|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\GL\freeglut_std.h|614|undefined reference to `_imp____glutCreateWindowWithExit@8'|
obj\Debug\main.o||In function `glutCreateMenu_ATEXIT_HACK':|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\GL\freeglut_std.h|616|undefined reference to `_imp____glutCreateMenuWithExit@8'|
obj\Debug\main.o||In function `main':|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|43|undefined reference to `_imp__glutMainLoop@0'|
obj\Debug\main.o||In function `Z10InitializeiPPc':|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|69|undefined reference to `glGetString@4'|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|71|undefined reference to `glClearColor@16'|
obj\Debug\main.o||In function `Z10InitWindowiPPc':|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|78|undefined reference to `_imp__glutInitContextVersion@8'|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|79|undefined reference to `_imp__glutInitContextFlags@4'|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|80|undefined reference to `_imp__glutInitContextProfile@4'|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|85|undefined reference to `_imp__glutSetOption@8'|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|87|undefined reference to `_imp__glutInitWindowSize@8'|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|89|undefined reference to `_imp__glutInitDisplayMode@4'|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|101|undefined reference to `_imp__glutReshapeFunc@4'|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|102|undefined reference to `_imp__glutDisplayFunc@4'|
obj\Debug\main.o||In function `Z14ResizeFunctionii':|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|109|undefined reference to `glViewport@16'|
obj\Debug\main.o||In function `Z14RenderFunctionv':|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|114|undefined reference to `glClear@4'|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|116|undefined reference to `_imp__glutSwapBuffers@0'|
C:\Users\DrMike\Graphics\chapter1.2\main.cpp|117|undefined reference to `_imp__glutPostRedisplay@0'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libmingw32.a(pseudo-reloc.o):pseudo-reloc.c|| undefined reference to `VirtualQuery@12'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libmingw32.a(pseudo-reloc.o):pseudo-reloc.c|| undefined reference to `VirtualProtect@16'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libmingw32.a(pseudo-reloc.o):pseudo-reloc.c|| undefined reference to `VirtualProtect@16'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\libgcc.a(cygming-shared-data.o)||In function `cmshared_get_ptr_from_atom':|
c:\crossdev\b4.4.1-tdm-1\build-sjlj\mingw32\libgcc\..\..\..\..\gcc-4.4.1\libgcc\..\gcc\config\i386\cygming-shared-data.c|91|undefined reference to `GetAtomNameA@12'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\libgcc.a(cygming-shared-data.o)||In function `_cmshared_create_or_grab':|
c:\crossdev\b4.4.1-tdm-1\build-sjlj\mingw32\libgcc\..\..\..\..\gcc-4.4.1\libgcc\..\gcc\config\i386\cygming-shared-data.c|140|undefined reference to `FindAtomA@4'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\libgcc.a(cygming-shared-data.o)||In function `cmshared_add_ptr_as_atom':|
c:\crossdev\b4.4.1-tdm-1\build-sjlj\mingw32\libgcc\..\..\..\..\gcc-4.4.1\libgcc\..\gcc\config\i386\cygming-shared-data.c|118|undefined reference to `AddAtomA@4'|
||=== Build finished: 28 errors, 0 warnings ===| HELP!!!