找回密码
 欢迎注册
搜索
热搜: 活动 交友 discuz
查看: 3427|回复: 1

请教DICOM问题,关于dcmtk开发包问题~~

[复制链接]
发表于 2007-11-27 16:03:17 | 显示全部楼层 |阅读模式
请问有做过DICOM图像格式转换的前辈吗?请教一个问题,我是才学习DICOM不长时间,还在看别人的代码,在使用dcmtk工具时候遇到一个问题,请哪位学VC编程的帮我看看好吗?谢谢~~
下载的dcmtk开发包,编译成exe文件时候出错,信息如下:

ofConsole.lockCerr() <<  "Error: DcmSequenceOfItems::readSubItem(): cannot create SubItem " << newTag << endl;
错误提示:
C:\dcmsource\dcmtk\dcmdata\libsrc\dcsequen.cxx(517) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'const class DcmTag' (or there is no acceptable conversion)

ofConsole.lockCerr() << "Warning: DcmItem: parse error occurred: " <<  newTag << endl;
错误提示:
C:\dcmsource\dcmtk\dcmdata\libsrc\dcitem.cxx(1007) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class DcmTag' (or there is no acceptable conversion)


~~每个类都有相似的11处这样的出错提示~~


我估计会不会是"<<"符号问题,不是很清楚,请有这方面研究的前辈指教一下~~
发表于 2007-11-29 08:45:50 | 显示全部楼层
操作符重载一般在类里都有定义,未定义的话需要相应的.h文件,看是否编译连接(include)和定义正确
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

快速回复 返回顶部 返回列表