开发者

Undefined reference to [closed]

开发者 https://www.devze.com 2022-12-21 05:17 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a开发者_运维知识库 specific moment in time,or an extraordinarily narrow situation that is not
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a开发者_运维知识库 specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

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!


Forgot to add the files to QT Designer. Solved!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号