News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

sorry, but i also have linker probs!

Started by trifox, September 04, 2006, 10:07:10 PM

Previous topic - Next topic

trifox

hi all, i usually know how to build an opengl application, but i used the opengl template
and made the basic app, this works fine, but when adding the glui.h and the glut.h
header files, and including the libs to the linker path, i get always this :

Switching to target: default
mingw32-g++.exe       -IC:\Programme\CodeBlocks\include -c main.cpp -o .objs\main.o
mingw32-g++.exe   -LD:\CODING_3\test4\  -LC:\Programme\CodeBlocks\lib -LD:\CODING_3\test3 -o D:\CODING_3\test4\OpenGL.exe .objs\main.o        -lglui32 -lglut32 -lglu32 -lgdi32 -luser32 -lkernel32 -lopengl32  -mwindows
.objs\main.o:main.cpp:(.text+0x1c): undefined reference to `__glutInitWithExit@12'
.objs\main.o:main.cpp:(.text+0x3d): undefined reference to `__glutCreateWindowWithExit@8'
.objs\main.o:main.cpp:(.text+0x5d): undefined reference to `__glutCreateMenuWithExit@8'

i cant help me anymore, what is wrong with my libs ? the named functions DO exist in the lib files, they are in the same folder as the whole project ... fiddling around with the include order does not helped me out, so what the heck i am overseeing ?

thank you for reading/answering stupid questions ...

Phatency

Try this:

#define GLUT_DISABLE_ATEXIT_HACK

#include "gl/glut.h"


And, this is not a general programming board. You're better off searching gamedev.net or something.