views:

53

answers:

1

Hi, I'm doing an opengl/qt3 assignment, but I'm running into an undefined reference error:

Renderer.h:
...
#include "Mesh.h"
... Mesh mesh;

Renderer.cpp: 
...
mesh.load("ball.obj"); 
...

Mesh.h:
...
bool load(string filename);
...

Mesh.cpp:
#include "Mesh.h"
...
bool Mesh::load(string filename) { ... }
...

but the compiler complains about the line mesh.load("ball.obj") as an undefined reference... What is going on? Thank you in advance!

+1  A: 

Forgot to add the files to QT Designer. Solved!

confusedKid
Now just click that green arrow to mark this as "the" answer.
GMan