Super Bible 5 triangle errors

Hello guys,

i have seen, that some other member has asked something about the superbible 5, but it doesn’t help me.

I started with the triangle example, but i get some errors i don’t unterstand.
My OS is Gentoo Linux. :wink:

g++ -Wl,-rpath,/usr/lib64/qt4 -o Opengl_tester main.o -L/usr/X11R6/lib -L/usr/lib64/qt4 -L/usr/lib -L/usr/lib32 -L/usr/local/lib -lglut -lm -lGLU -lGL -lQtOpenGL -L/usr/lib64 -L/usr/lib64/qt4 -L/usr/X11R6/lib -lQtGui -lQtCore -lgthread-2.0 -lrt -lglib-2.0 -lpthread
main.o: In function SetupRC()': /home/demonking/Development/Opengl_tester-build-desktop/../Opengl_tester/main.cpp:26: undefined reference toGLShaderManager::InitializeStockShaders()’
make: Leaving directory /home/demonking/Development/Opengl_tester-build-desktop' /home/demonking/Development/Opengl_tester-build-desktop/../Opengl_tester/main.cpp:33: undefined reference toGLBatch::Begin(unsigned int, unsigned int, unsigned int)’
/home/demonking/Development/Opengl_tester-build-desktop/…/Opengl_tester/main.cpp:35: undefined reference to GLBatch::End()' main.o: In functionRenderScene()’:
/home/demonking/Development/Opengl_tester-build-desktop/…/Opengl_tester/main.cpp:42: undefined reference to GLShaderManager::UseStockShader(GLT_STOCK_SHADER, ...)' /home/demonking/Development/Opengl_tester-build-desktop/../Opengl_tester/main.cpp:43: undefined reference toGLBatch::Draw()’
main.o: In function __static_initialization_and_destruction_0': /home/demonking/Development/Opengl_tester-build-desktop/../Opengl_tester/main.cpp:13: undefined reference toGLBatch::GLBatch()’
/home/demonking/Development/Opengl_tester-build-desktop/…/Opengl_tester/main.cpp:13: undefined reference to GLBatch::~GLBatch()' /home/demonking/Development/Opengl_tester-build-desktop/../Opengl_tester/main.cpp:14: undefined reference toGLShaderManager::GLShaderManager()’
/home/demonking/Development/Opengl_tester-build-desktop/…/Opengl_tester/main.cpp:14: undefined reference to GLShaderManager::~GLShaderManager()' main.o: In functionGLBatch::CopyVertexData3f(float*)’:
/usr/include/GL/GLBatch.h:89: undefined reference to `GLBatch::CopyVertexData3f(float (*) [3])’
collect2: ld returned 1 exit status
make: *** [Opengl_tester] Error 1
The process “/usr/bin/make” exited with code 2.
Error while building project Opengl_tester (target: Desktop)
When executing build step ‘Make’

My IDE is qt-creator so my pro file, if someone want to know:

CONFIG += opengl glu glew DEBUG
QT += opengl
SOURCES +=
main.cpp
INCLUDEPATH += /usr/include/
/usr/local/include
/usr/include/GL

LIBS = -L/usr/lib -L/usr/lib32 -L/usr/local/lib -lglut -lGL -lGLU -lm

When it is easier to compile it with a Makefile so i will write my own Makefiles .:slight_smile:

PS: Sorry for my bad english, i’m still learning :wink: