【问题标题】:how to solve fopen64, freopen64, tmpfile64 not declared errors?如何解决 fopen64、freopen64、tmpfile64 未声明错误?
【发布时间】:2018-11-13 09:19:24
【问题描述】:

我已编译 DCMTK 源代码以生成库(用于 android 平台)并将这些库添加到我的 QT 项目中。在构建我的 qt 项目时,我遇到了这些错误:

C:\Ashish\QTPROJECT\test\include\dcmtk\ofstd\offile.h:310: error: '::fopen64' has not been declared
file_ = :: fopen64(filename, modes);
^
C:\Ashish\QTPROJECT\test\include\dcmtk\ofstd\offile.h:425: error: '::freopen64' has not been declared
file_ = :: freopen64(filename, modes, file_);
^
C:\Ashish\QTPROJECT\test\include\dcmtk\ofstd\offile.h:444: error: '::tmpfile64' has not been declared
file_ = :: tmpfile64();
^
C:\Ashish\QTPROJECT\test\include\dcmtk\ofstd\offile.h:790: error: '::fseeko64' has not been declared
result = :: fseeko64(file_, off, whence);
^
C:\Ashish\QTPROJECT\test\include\dcmtk\ofstd\offile.h:823: error: '::ftello64' has not been declared
result = :: ftello64(file_);
^
C:\Ashish\QTPROJECT\test\include\dcmtk\ofstd\offile.h:847: error: '::fgetpos64' has not been declared
result = :: fgetpos64(file_, pos);
^
C:\Ashish\QTPROJECT\test\include\dcmtk\ofstd\offile.h:867: error: '::fsetpos64' has not been declared
result = :: fsetpos64(file_, pos);

我该如何解决这个问题?

【问题讨论】:

    标签: android qt dcmtk


    【解决方案1】:

    解决了这个问题。 问题是我使用的库是在调试中编译的,所以解决方案是在创建库时我应该使用发布而不是调试,然后将这些库添加到项目中,这样就不会发生这样的错误。

    【讨论】:

      猜你喜欢
      • 2017-09-11
      • 2020-08-05
      • 1970-01-01
      • 2022-01-27
      • 1970-01-01
      • 1970-01-01
      • 2023-02-22
      • 2020-07-19
      • 2021-07-25
      相关资源
      最近更新 更多