C++ 遇到error LNK2019: unresolved external symbol "public: void __thisca的问题
来源:互联网 发布:软件平台性能指标 编辑:程序博客网 时间:2024/05/20 01:35
1>main.obj : error LNK2028: unresolved token (0A00032D) "public: void __thiscall ImageVolume::readVolume(unsigned char *,char const *,long)" (?readVolume@ImageVolume@@$$FQAEXPAEPBDJ@Z) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)
1>main.obj : error LNK2019: unresolved external symbol "public: void __thiscall ImageVolume::readVolume(unsigned char *,char const *,long)" (?readVolume@ImageVolume@@$$FQAEXPAEPBDJ@Z) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)
解决方案:在方法的。cpp里面加上 ImageVolume:: getlength()
void ImageVolume::readVolume(u_char * buf,char const *filename,int length){FILE *file=fopen(filename,"rb");//u_char * buf;if(file==NULL){printf("open the file failed!");}fread(buf,sizeof(unsigned char),length,file);fclose(file);printf("read is ok");}
- C++ 遇到error LNK2019: unresolved external symbol "public: void __thisca的问题
- error LNK2019: unresolved external symbol "__declspec(dllimport) void 遇到的问题以及解决办法
- error LNK2019: unresolved external symbol "public:
- error LNK2019: unresolved external symbol "public: __thiscall
- error LNK2019: unresolved external symbol "public 错误的出现原因.
- error LNK2019: unresolved external symbol "public 错误的出现原因. .
- error LNK2019: unresolved external symbol "public: __cdecl std::_Lockit::~_Lockit(void)"
- Qt 编译时出现“-1: error: LNK2019: unresolved external symbol "public: void __thiscall M”错误
- error LNK2019: unresolved external symbol @24问题
- error LNK2019: unresolved external symbol 问题
- error LNK2019:unresolved external symbol的解决方法
- error LNK2019: unresolved external symbol "public: __thiscall XXXXXXX
- Error LNK2019: unresolved external symbol
- error LNK2019: unresolved external symbol
- error LNK2019: unresolved external symbol
- error LNK2019: unresolved external symbol
- error LNK2019: unresolved external symbol
- error LNK2019: unresolved external symbol
- hibernate中如何替换slf4j为log4j
- 考试的感想
- This template requires a more recent version of the Android Eclipse plugin. Please update from versi
- windows进程间通信
- java 简单代码 运行
- C++ 遇到error LNK2019: unresolved external symbol "public: void __thisca的问题
- 第三次上机试验任务
- 如何在Eclipse中显示行号
- 信息检索和网络数据挖掘领域论文技术基础
- 在二叉树中找出和为某一输入值的所有路径
- SDE优化:oracle参数调整
- awk中可以使用system来执行复杂的shell命令
- 织梦DEDE内容页
- 经典的括号匹配问题