【发布时间】:2012-04-06 17:29:45
【问题描述】:
我在/root_project/main.cpp 中有这样的代码:
#include "theoraplayer/TheoraVideoClip.h"
unsigned int tex_id;
TheoraVideoManager* mgr;
TheoraVideoClip* clip;
std::string window_name="glut_player";
bool started=1;
int window_w=800,window_h=600;
void draw()
{
glBindTexture(GL_TEXTURE_2D,tex_id);
TheoraVideoFrame* f=clip->getNextFrame(); //this gives an error!!!
if (f)
{
TheoraVideoClip.h 文件位于/root_project/include/theoraplayer/。
TheoraVideoClip.h 里面有这个:
TheoraVideoFrame* getNextFrame();
当我尝试使用 g++ -o app main.cpp -lGL -lglut -lGLU 进行编译时
我遇到了这个错误:
main.cpp:(.text+0xac2): 未定义的引用 `TheoraVideoClip::getNextFrame()'
有人知道为什么吗?
Ubuntu 11.10
【问题讨论】:
标签: c++ ogg-theora