g++ -Wall -g -DVERSION=\"0.01\" -I /usr/local/include -I /usr/local/include/amcodec -c main.cpp
main.cpp: In function ‘int main(int, char**)’:
main.cpp:27:12: warning: unused variable ‘pCodec’ [-Wunused-variable]
IAmCodec* pCodec = new AmCodec();
^
g++ -Wall -g -DVERSION=\"0.01\" -I /usr/local/include -I /usr/local/include/amcodec -c AmCodec.cpp
g++ -Wall -g -DVERSION=\"0.01\" -I /usr/local/include -I /usr/local/include/amcodec -c IAmCodec.cpp
g++ -Wall -g -DVERSION=\"0.01\" -I /usr/local/include -I /usr/local/include/amcodec -o prog main.o AmCodec.o IAmCodec.o -L /usr/local/lib
AmCodec.o: In function `AmCodec::init()':
/home/tom/tsplayer/AmCodec.cpp:48: undefined reference to `codec_init'
AmCodec.o: In function `AmCodec::close()':
/home/tom/tsplayer/AmCodec.cpp:53: undefined reference to `codec_close'
AmCodec.o: In function `AmCodec::reset()':
/home/tom/tsplayer/AmCodec.cpp:59: undefined reference to `codec_reset'
AmCodec.o: In function `AmCodec::pause()':
/home/tom/tsplayer/AmCodec.cpp:66: undefined reference to `codec_pause'
AmCodec.o: In function `AmCodec::resume()':
/home/tom/tsplayer/AmCodec.cpp:73: undefined reference to `codec_resume'
AmCodec.o: In function `AmCodec::write(void*, int)':
/home/tom/tsplayer/AmCodec.cpp:80: undefined reference to `codec_write'
AmCodec.o: In function `AmCodec::checkin_pts(unsigned long)':
/home/tom/tsplayer/AmCodec.cpp:87: undefined reference to `codec_checkin_pts'
AmCodec.o: In function `AmCodec::get_vbuf_state(buf_status*)':
/home/tom/tsplayer/AmCodec.cpp:94: undefined reference to `codec_get_vbuf_state'
AmCodec.o: In function `AmCodec::get_vdec_state(vdec_status*)':
/home/tom/tsplayer/AmCodec.cpp:101: undefined reference to `codec_get_vdec_state'
AmCodec.o: In function `AmCodec::init_cntl()':
/home/tom/tsplayer/AmCodec.cpp:108: undefined reference to `codec_init_cntl'
AmCodec.o: In function `AmCodec::poll_cntl()':
/home/tom/tsplayer/AmCodec.cpp:115: undefined reference to `codec_poll_cntl'
AmCodec.o: In function `AmCodec::set_cntl_mode(unsigned int)':
/home/tom/tsplayer/AmCodec.cpp:122: undefined reference to `codec_set_cntl_mode'
AmCodec.o: In function `AmCodec::set_cntl_avthresh(unsigned int)':
/home/tom/tsplayer/AmCodec.cpp:129: undefined reference to `codec_set_cntl_avthresh'
AmCodec.o: In function `AmCodec::set_cntl_syncthresh(unsigned int)':
/home/tom/tsplayer/AmCodec.cpp:136: undefined reference to `codec_set_cntl_syncthresh'
collect2: error: ld returned 1 exit status
make: *** [tsplayer] Error 1