[ODE] Another question about header files and linking stuff

skjold@cistron.nl skjold at cistron.nl
Mon Feb 17 01:53:17 2003


> Why can't I access GL functions from within test_buggy.cpp? I'm playing
> a little around with it, and when trying to add my own code to make GL
> display a polygonal mesh, I just get "implicit declaration of..".

Maybe you forgot to include the gl.h (or glu.h) header in your own program?


> And when
> I include my code in drawstuff, my program can't access it anymore..

Do you also put declarations for your functions (and structs etc) into drawstuff.h (or into a new header that you include in your program)?


> I guess I'm misunderstanding something vital, but I'm just testing really,
> I plan on writing my own replacement for drawstuff after a while. But
> for now, is there a quick and dirty way to do this? Or can anybody
> explain what I'm misunderstanding? I'm also unable to access c++ stuff
> like <vector>.

"Unable to access"... how? What error messages are you getting here?


Greets,
Mark