Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

starter problems

Name: Anonymous 2010-10-25 17:53

I'm new to C++ so sorry if this is obvious. I've be trying to work with openGL through SDL, but I'm getting 'undefined reference to ' and then any of the gl functions.
From what I can work out i'm missing some stuff in the lib folder, but I'm not 100% sure what. How can I check what missing and what do i need to do to sort it out
Thanks

Name: Anonymous 2010-10-26 0:35

>>1
This is "intro to C++" stuff... ultra-basic stuff that shows you have no idea what you're doing.  If you use a library, you have to link with it.  Since you said you're missing stuff in the lib folder, I can only assume that means you don't even have SDL installed.  I guess you might be running Linux or BSD, because you mention a "lib" folder.  Get familiar with the package manager (yum, apt-get, emerge, pacman, ports).  Install "-devel" packages if they exist.

Starting with C++ is a bad way to learn game programming.  It's like you want to learn how to sculpt, but you want to use marble because it's what Michaelangelo used.  You'll just end up breaking things and getting frustrated.  Start with clay, metaphorically speaking.

Oh, and learn to use "pkg-config" with your build system.  It has a database of the compilation and linker flags for most libraries installed on your system.

Name: Anonymous 2010-10-26 0:46

>>4
Don't listen to him.

You have forgotten to link your .a or .lib file depending on your compiler (Mingw uses .a, all the others use .lib from memory).

Also C++ is the best way to learn game programming.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List