Anyone help with these errors?
Ok ive been adapting the nehegl oop version and i ended up with 4 linker errors
undefined reference to `SwapBuffers@4''
undefined reference to `WndProc(HWND__ *, unsigned int, unsigned int, long)''
undefined reference to `ChoosePixelFormat@8''
undefined reference to `SetPixelFormat@12''
so can anyone help with these? Im usin devC++ btw. Also i tried just taking an unmodified version of nehes oop basecode and i got the same errors so i dont think its what ive changed. Can anyone help?
You are calling functions which are not implemented.
You either need to implement them or to link a library that does.
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
You either need to implement them or to link a library that does.
Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Yeah thats what i thought but i was hoping someone new where they were included?
Three of those functions are in libgdi32.a, I''m relatively sure (so link with -lgdi32). WndProc you must write yourself (or simply steal the WndProc from a NeHe tutorial).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement