解决方法:OTB 中 GDALJP2Box::GDALJP2Box(struct iobuf *),there is the error of unresolved external in debug

来源:互联网 发布:被狙击的学园 知乎 编辑:程序博客网 时间:2024/06/01 10:50

关于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库就可以解决。