By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,918 Members | 2,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,918 IT Pros & Developers. It's quick & easy.

kevelop

P: n/a
Hi
While trying to compile a C++ prog with OpenGL/SDL I get
errors about not found/declared glfunctions.
Thanks
Michael

Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Michael Sgier wrote:
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!

--
STH
Hatton's Law: "There is only One inviolable Law"
KDevelop: http://www.kdevelop.org SuSE: http://www.suse.com
Mozilla: http://www.mozilla.org
Jul 22 '05 #2

P: n/a
On Sat, 14 Aug 2004 23:26:13 +0200, Michael Sgier <sg***@dplanet.ch>
wrote in comp.lang.c++:
Hi
While trying to compile a C++ prog with OpenGL/SDL I get
errors about not found/declared glfunctions.
Thanks
Michael


You need to ask in a group that supports OpenGL/DSL. You have
compiler specific and third party issues. Neither of these are C++
language issues.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.