小编Elv*_*.Du的帖子

clang 将 c++ 编译为 wasm ,出现 stdio.h not found 错误

我输入\xef\xbc\x9a

\n\n
 clang -emit-llvm --target=wasm32 -Oz my.cpp -c -o math.bc\n
Run Code Online (Sandbox Code Playgroud)\n\n

一直存在以下错误:

\n\n
my.cpp:1:10: fatal error: \'stdio.h\' file not found\n#include <stdio.h>\n         ^~~~~~~~~\n
Run Code Online (Sandbox Code Playgroud)\n\n

我的来源如下:

\n\n
\n#include "stdio.h"\n#include "math.h"\n\nvoid ttt()\n{\n        double ww = pow((double)2.0, (double)0.3);\n        print(ww);\n}\n
Run Code Online (Sandbox Code Playgroud)\n

clang webassembly

5
推荐指数
0
解决办法
1964
查看次数

标签 统计

clang ×1

webassembly ×1