News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

linker problems (undefined reference to ...)

Started by sektion31, November 08, 2012, 03:19:04 AM

Previous topic - Next topic

sektion31

Hi,

i'm trying to go through the tutorials of http://www.opengl-tutorial.org.
i managed to compile them in visual studio 2010, but the windows drivers for my intel graphics card support only opengl 2.0.
so now i try to compile them in code::blocks under linux mint 13, where intel provides opengl 2.1 drivers.

i managed to import the needed header files manually but after that i am stuck with the linker not being happy

-------------- Build: default in playground ---------------

Linking executable: tutorials
.objs/playground/playground.o: In function `main':
playground.cpp:(.text+0xa): undefined reference to `glfwInit'
playground.cpp:(.text+0x56): undefined reference to `glfwOpenWindowHint'
[...]
playground.cpp:(.text+0x1d3): undefined reference to `glfwTerminate'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
15 errors, 0 warnings


so does anyone know whats wrong? any help is appreciated
i attached the main .cpp as a textfile

greetings
adrian

[attachment deleted by admin]

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

sektion31

thanks.

i got it working now. didnt have the libs compiled  :-[