Windows-Linux WGL error.

here’s what i did: I made a complete game under Linux, using only cmath, cstdio, cstdlib and glut,gl,glu libraries, and it worked. Now, that I wanted to compile it for Windows(cause I need to post Windows-compatible ), I downloded DevCpp, installad the glut’s devPak, setted the lib imports at linker parameters to: libopengl32.a libglu32.a libglut32.a . When I try to build my project, I receive Linker Errors like:

[Linker Error] undefined reference to ‘glPixelStorei@8’

[Linker Error] undefined reference to ‘glBitMap@28’

[Linker Error] undefined reference to wglGetCurrentContext

[Linker Error]undefined reference to ‘SelectPalette@12’

etc

Some help ?

The libraries .a are a linux format. You need the .lib files. I don’t know how do you configure DevCpp to use this. I normally have something like this:
#ifdef WIN32
#pragma comment(lib, “glew32.lib”)
//#pragma comment(lib, “glew32s.lib”)
#pragma comment(lib, “opengl32.lib”)
#pragma comment(lib, “glu32.lib”)
#pragma comment(lib, “SDL.lib”)
#pragma comment(lib, “SDLmain.lib”)
#pragma comment(lib, “libxml2.lib”)

#endif

to avoid a need to reconfigure the current compiler for your libraries (some people doen’t like the #ifdef WIN32, to avoid “dirt” the code).

Which compiler do you have underlying DevCPP? I’ve had some problems using the GLUT libraries that are designed for MSVC; you should try to find a mingw-specific version of glut.