Ok my problem begins with my first error. Im compiling my code which has a .c file and a .rc file. In the .c file I have at the top.
#include "opengl.cpp"
// Error: 10 In file included from MDIDemo.c
MDIDemo.c is the current c file. What does this error mean exactly? I thought it ment that I all ready included this file. But I don't see how. Its not added to my project list.
On to the next couple errors. Which I think are related.
/*Errors
[Linker error] undefined reference to `CreateGLWindow'
[Linker error] undefined reference to `KillGLWindow'
[Linker error] undefined reference to `KillGLWindow'
[Linker error] undefined reference to `KillGLWindow'
[Linker error] undefined reference to `KillGLWindow'
[Linker error] undefined reference to `KillGLWindow'
[Linker error] undefined reference to `ReSizeGLScene'
[Linker error] undefined reference to `InitGL'
[Linker error] undefined reference to `KillGLWindow' */
Ok, the file im including. The opengl.cpp has functions in it. These functions are the ones in the errors above. In that .cpp file is a opengl.h file which contains uh the proto types(I thinks thats what they are called).
// opengl.h
GLvoid ReSizeGLScene(GLsizei width, GLsizei height) ;
int InitGL(GLvoid) ;
int DrawGLScene(GLvoid) ;
GLvoid KillGLWindow(GLvoid) ;
BOOL CreateGLWindow(char* title, int width, int height, int bits) ;
As you can see Im trying to use opengl. But I have been have a lot of trouble.
I desperatly need you peoples help. I don't know where else to turn.
Thanks byonders.