关于OTB 中 GDALJP2Box::GDALJP2Box(struct iobuf *),there is the error of unresolved external in debug模式时的解决方法:
将gdaljp2metadata.h中GDALJP2Box类中的构造函数改为:
GDALJP2Box( VSILFILE * );
GDALJP2Box();
同时将gdaljp2box.cpp文件中添加构造函数的实现代码
GDALJP2Box::GDALJP2Box()
{
fpVSIL = NULL;
szBoxType[0] = '\0';
nBoxOffset = -1;
nDataOffset = -1;
nBoxLength = 0;
pabyData = NULL;
}
重新编译gdal库就可以解决。