win7+vs2010+opencv2.4.6调试SfM-Toy-Library-master时遇到的问题和解决办法
error1.error C2226: 语法错误 : 意外的“cv::gpu::GpuMat”类型
解决办法:在std命名空间中已经有min/max的宏定义,所以需要在#include <opencv2/gpu/gpu.hpp>之前添加如下两行:
#undef min#undef max#include <opencv2/gpu/gpu.hpp>
error2.error LNK2019: 无法解析的外部符号 "int __cdecl runUI(int,char * *)" (?runUI@@YAHHPAPAD@Z),
该符号在函数 _main 中被引用 E:\SFM\SfM-Toy-Library-master\Bulid\main.obj
解决办法:在#ifndef NO_FLTK之前对NO_FLTK进行定义,如下:
#define NO_FLTK
#ifndef NO_FLTK
On the way,never lose your heart,cause you were born to do this!