-
header file help
I made my own header file to create a window and then called the function in another source but I get a linker error of undifined referance to `createwin()'
I made sure to include the header and I know i have the function name rite I have no idea what could be causeing this error any help would be appreciated thanks in advance
kas2002
-
Do you have the function body in a separate source file or in the header also? Post up your header file and lets have a look. When you get a linker error like that it is saying it can't find the body to the function you're trying to call.
-
I figured it out thanks
I was also wondering could I just make a program that initializes say a library like OPENGL and then create a header file for that and only have to call 1 function in my main program code to initialize OPENGL. Well I am sure it could be done but I was wondering how I would go abouts this.
-
Possible Possible
What are you using for OpenGL? Glut?
-
yea I think but I may have figured it out I have a different question though what does this error mean???
[Linker error] undefined reference to `WinMain@16'
thats the only one left
-
May be an undefined reference to WinMain on line 16? LOL. Post the code.