Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Can't find standard headers while working for Android

未关闭
#359 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
android, cpp

调研方向

Start by reviewing the attached build_android.txt script alongside the linked Android setup guide, then reproduce the build and inspect the include chain through raylib-cpp/include/./RaylibException.hpp. Trace why standard headers such as stdexcept, cstring, and cmath are unavailable; done means the Android build completes with raylib-cpp without those header errors.

由索引模型根据 Issue 内容生成。

描述

Hi, I'm currently trying to develop a Raylib game using the raylib-cpp wrapper; following this guide and modifying a bit the launch script (that I will attach), I was able to make Raylib run on Android.
The problem is that when I start to use raylib-cpp (after following the Getting Started section obviously), I get this error message:

In file included from src/main.cpp:2:
In file included from src/engine/engine.hpp:4:
In file included fro

[build_android.txt](https://github.com/user-attachments/files/20458700/build_android.txt)

[build_android.txt](https://github.com/user-attachments/files/20458710/build_android.txt)

m raylib-cpp/include/raylib-cpp.hpp:34:
In file included from raylib-cpp/include/./AudioDevice.hpp:4:
raylib-cpp/include/././RaylibException.hpp:4:10: fatal error: 'stdexcept' file not found
    4 | #include <stdexcept>
      |          ^~~~~~~~~~~
1 error generated.

I think every there's a linking problem regarding raylib-cpp and Android projects, because when I try using a cmake to make the project run on desktop everything works perfectly. How can I fix this?

Steps to replicate:

  1. Follow the guide linked to setup Android developing Raylib project
  2. Clone raylib-cpp into the project directory
  3. Run the building script

build_android.txt

EDIT: I tried commenting the #include <stdexcept> line in the RaylibException.hpp file, and I got the same error with the #include <string>. I also commented this last include and, again, got the same error with cmath on a different file. It seems raylib-cpp can't find the standard libraries at all.

主要语言
C++
星标
960
派生
120
平均合并
10 分钟
30 天内合并 PR
1

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

RobLoach/raylib-cpp 的其他 Issue

查看 RobLoach/raylib-cpp 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。