报错 fatal error: iostream: No such file or directory
时间: 2023-10-30 10:56:19 浏览: 339
回答: 当你在开发JNI时遇到"fatal error: iostream: No such file or directory"的错误时,这通常是因为你的编译环境缺少了iostream头文件。根据你提供的引用内容,有几种可能的解决方法。首先,你可以检查你的编译命令是否正确,确保你使用的是g++而不是gcc。其次,你可以尝试将$CC替换为$CXX,这可能会解决问题。最后,你可以检查你的编译环境是否正确配置,确保你的交叉编译工具链正确安装并进行了正确的环境配置。希望这些方法能够帮助你解决这个问题。
#### 引用[.reference_title]
- *1* [jni开发的时候fatal error: iostream: No such file or directory](https://blog.csdn.net/hty1053240123/article/details/52105133)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [编译报错fatal error:No such file or directory #include <cstdlib> 和 ‘_Znwj@@GLIBCXX_3.4](https://blog.csdn.net/usstmiracle/article/details/103177201)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [说个笑话-fatal error: iostream: No such file or directory /fatal error: stdio.h: No such file or ...](https://blog.csdn.net/linglongqiongge/article/details/92023108)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文