Re[2]: [ODE] Another question about header files and linking stuff

Amund Børsand amund at c2i.net
Mon Feb 17 13:05:02 2003


<skjold@cistron.nl> skreiv:

> > 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?

But drawstuff has already included this, and uses these functions? I
can't include them again in my own program, that gives me more obscure
messages. 

> > 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)?

No.. maybe that's what I'm misunderstanding.. ?

> > 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?

Just that it couldn't find the file "vector", if I remember correctly.
And when I specified the full path, I got lots of syntax and not
defined- errors from within the vector-file. I guessed the makefile used
a C-only compiler, which didn't understand the C++ in Vector.