User forums > Using Code::Blocks
compilation error
rexona:
hi guys...
when i try to compile my code i got this kind of error
Switching to target: default
Linking console executable: lab01.exe
.objs/lab01.o(.text+0x2b7): In function `SimplePolygon::draw()':
: undefined reference to `glDisable'
.objs/lab01.o(.text+0x2c7): In function `SimplePolygon::draw()':
: undefined reference to `glDisable'
.objs/lab01.o(.text+0x2d4): In function `SimplePolygon::draw()':
: undefined reference to `glBegin'
.objs/lab01.o(.text+0x2f1): In function `SimplePolygon::draw()':
: undefined reference to `glColor3f'
.objs/lab01.o(.text+0x30e): In function `SimplePolygon::draw()':
: undefined reference to `glVertex3f'
.objs/lab01.o(.text+0x32b): In function `SimplePolygon::draw()':
: undefined reference to `glVertex3f'
what did i miss there? what can i do? what should i do?
i'm running on slackware current
thx guys
mandrav:
Add GL in link libraries...
rexona:
sorry? link lib? where can i find it?
i'm sorry i'm newbie on both linux and codeblocks
thx
mandrav:
Go to "Project->Build options->Linker->Link libraries", click "Add", type GL and press "OK".
rexona:
i've tried that so many times, but still cannot work :(
what should i include?
Navigation
[0] Message Index
[#] Next page
Go to full version