Michael said:
Hi
While trying to compile a C++ prog with OpenGL/SDL I get
errors about not found/declared glfunctions.
Thanks
Michael
You will probably be better served by directing questions about KDevelop to
the KDevelop forum or mailing list. Your problem, however, doesn't seem
like a KDevelop problem. It is probably a problem with your environment.
Either the development rpms (I assume you are using Linux) are not
installed, or you do not have the correct LIBRARY_PATH, or
-I<path/to/openGL>. The one place KDevelop may be involved is that it will
allow you to set the arguments passed to the linker. But is doesn't always
work correctly!
Project->Options->Configure Options->Linker Flags (LDFLAGS):
try putting -lGL in there. I did a `locate libGL' and found these on my SuSE
9.1 OS. You should have something similar.
/usr/i486-linux-libc5/lib/libGL.so
/usr/i486-linux-libc5/lib/libGLU.so
/usr/lib/fglrx/lib/libGL.so.1
/usr/lib/fglrx/lib/libGL.so.1.2
/usr/lib/GL/libGL.so.1
/usr/lib/GL/libGL.so.1.2
/usr/lib/libGL.a
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2
/usr/lib/libGLcore.so.1
/usr/lib/libGLU.a
/usr/lib/libGLU.so
/usr/lib/libGLU.so.1
/usr/lib/libGLU.so.1.3
/usr/X11R6/lib/libGLw.a
/usr/X11R6/lib/libGLw.so.1
/usr/X11R6/lib/libGLw.so.1.0
/usr/X11R6/lib/modules/extensions/libGLcore.a
Also try `pin mesa'.
This newsgroup is really for questions about the C++ language, and not about
using KDevelop, or OpenGL. You would likely get more help by posting to a
linux development mailing list or newsgroup.
Good luck!