Advertisement

Anyone help with these errors?

Started by August 09, 2002 10:45 AM
3 comments, last by DeanB 22 years, 4 months ago
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 ]
"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
Advertisement
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).

Yeah thanks that sorted the 3 errors but the WndProc one is still there and this was straight from the nehe code. Maybe its just devc++ ill try compiling under mvc++ when I get the chance thanks for the help!

This topic is closed to new replies.

Advertisement