昨天刚在linux下配置好opencv,测试了样本测试程序成功。于是就很激动的自己写了一个程序,却发现问题又来了。
然后是执行,执行的时候要注意环境变量,这个在上一篇博文中有提到过。
1.出现的第一个问题:
root# g++ 092501.cpp
/tmp/ccM5dgO8.o: In function `main':
092501.cpp:(.text+0x21): undefined reference to `cvLoadImage'
092501.cpp:(.text+0x64): undefined reference to `cvCreateImage'
092501.cpp:(.text+0xa7): undefined reference to `cvCreateImage'
092501.cpp:(.text+0xc4): undefined reference to `cvResize'
092501.cpp:(.text+0xd0): undefined reference to `cvCreateMemStorage'
092501.cpp:(.text+0x116): undefined reference to `cvPyrSegmentation'
092501.cpp:(.text+0x121): undefined reference to `cvReleaseMemStorage'
092501.cpp:(.text+0x135): undefined reference to `cvNamedWindow'
092501.cpp:(.text+0x148): undefined reference to `cvShowImage'
0