../dlib-19.22/dlib/all/../bigint/../vectorstream/vectorstream.h:31:34: error: invalid use of dependent type ‘dlib::vectorstream::vector_streambuf<CharType>::size_type’ size_type read_pos = 0; // buffer[read_pos] == next byte to read from buffer ^ In file included from ../dlib-19.22/dlib/all/../svm/../global_optimization.h:8:0, from ../dlib-19.22/dlib/all/../svm/auto.cpp:7, from ../dlib-19.22/dlib/all/source.cpp:87: ../dlib-19.22/dlib/all/../svm/../global_optimization/find_max_global.h:284:47: error: default argument missing for parameter 8 of ‘template<class funct, class ... Args> std::pair<long unsigned int, dlib::function_evaluation> dlib::impl::find_max_global(double, dlib::thread_pool&, std::vector<_RealType>&, std::vector<dlib::function_spec>, std::chrono::nanoseconds, dlib::max_function_calls, double, Args&& ...)’ std::pair<size_t,function_evaluation> find_max_global ( ^ ../dlib-19.22/dlib/all/../svm/../global_optimization/find_max_global.h:303:47: error: default argument missing for parameter 7 of ‘template<class funct, class ... Args> std::pair<long unsigned int, dlib::function_evaluation> dlib::impl::find_max_global(double, dlib::thread_pool&, std::vector<_RealType>&, std::vector<dlib::function_spec>, std::chrono::nanoseconds, double, Args&& ...)’ std::pair<size_t,function_evaluation> find_max_global ( ^ make[3]: *** [../dlib-19.22/dlib/all/libRNA_concentrations_la-source.lo] Error 1 make[3]: Leaving directory `/storage/denghua/anaconda3/lib/python3.8/site-packages/ViennaRNA-2.5.0/src/ViennaRNA' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/storage/denghua/anaconda3/lib/python3.8/site-packages/ViennaRNA-2.5.0/src/ViennaRNA' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/storage/denghua/anaconda3/lib/python3.8/site-packages/ViennaRNA-2.5.0/src' make: *** [install-recursive] Error 1
时间: 2024-01-27 22:03:58 浏览: 36
这是一个编译错误,可能是因为您正在使用的是不兼容的编译器或依赖库版本。建议您尝试以下解决方法:
1. 检查您的编译器版本是否符合ViennaRNA的要求。ViennaRNA要求使用GCC 4.8或更高版本的编译器。如果您的编译器版本过低,建议升级到符合要求的版本。
2. 确保您已经正确安装了ViennaRNA所需的所有依赖库,并且这些库的版本也符合要求。您可以查看ViennaRNA的官方文档以获取详细的依赖库要求。
3. 尝试在不同的操作系统或环境中编译ViennaRNA,看看问题是否仍然存在。如果问题仅在特定环境中出现,那么可能是该环境中的某些设置或依赖库版本不兼容。
4. 如果以上方法都无法解决问题,您可以尝试联系ViennaRNA的开发团队或社区,看看是否有其他用户遇到了类似的问题,并且是否有解决方案可用。
相关问题
../dlib-19.22/dlib/all/../bigint/../vectorstream/vectorstream.h:31:34: error: invalid use of dependent type ‘dlib::vectorstream::vector_streambuf<CharType>::size_type’ size_type read_pos = 0; // buffer[read_pos] == next byte to read from buffer
这 error 是由于使用了一个依赖类型 `size_type`,但是编译器无法识别它。解决方法是在使用 `size_type` 之前加上 `typename` 前缀,以告诉编译器 `size_type` 是一个类型而非一个成员变量或函数。所以你需要将代码中的 `size_type` 改为 `typename vector_streambuf<CharType>::size_type`。这样编译器就能正确地解释 `size_type` 了。
https://blog.csdn.net/hhhhhhhhhhwwwwwwwwww/article/details/128031135
抱歉,我无法回答你提供的网址链接的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [人脸检测实战高级:使用 OpenCV、Python 和 dlib 完成眨眼检测.zip](https://download.csdn.net/download/hhhhhhhhhhwwwwwwwwww/57821490)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [物体检测实战:使用OpenCV内置方法实现行人检测.zip](https://download.csdn.net/download/hhhhhhhhhhwwwwwwwwww/67160136)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [QGIS二次开发:显示多个图层,编程环境为QGIS3.28和VS2017](https://download.csdn.net/download/KK_2018/88217562)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]