#132·Cello

不支持 Emscripten

作者: Maeiky创建于 2020年7月13日更新于 2020年7月19日

我只是用 Emscripten 在 Web 上尝试使用 Cello。但不幸的是,它不起作用。以下是我的日志: ** * * Shell_Common.js:513 atexit() 执行了,但没有设置 EXIT_RUNTIME,因此 atexits() 将不会被调用。请将 EXIT_RUNTIME 设置为 1(请参阅 FAQ) printErr @ Shell_Common.js:513 Shell_Common.js:490 +-------------------------------------------+ Shell_Common.js:490 | ptest MicroTesting Magic for C | Shell_Common.js:490 | | Shell_Common.js:490 | http://GitHub.com/orangeduck/ptest | Shell_Common.js:490 | | Shell_Common.js:490 | Daniel Holden ([email protected]) | Shell_Common.js:490 +-------------------------------------------+ Shell_Common.js:513 通过调用代理而不是调用 signal() printErr @ Shell_Common.js:513 Shell_Common.js:513 通过调用代理而不是调用 signal() printErr @ Shell_Common.js:513 Shell_Common.js:513 通过调用代理而不是调用 signal() printErr @ Shell_Common.js:513 Shell_Common.js:490 ===== Suite Array ===== Shell_Common.js:490 Shell_Common.js:513 无效的函数指针 "1020" 以签名 "ii" 调用。这可能是一个无效值(例如,通过在 NULL 指针上调用虚拟方法造成的)?或者调用一个类型不正确的函数,这将导致失败?(使用 -Werror 编译您的源文件是值得的,因为警告可以指示未定义的行为,这可能会导致此问题) printErr @ Shell_Common.js:513 Shell_Common.js:513 此指针在另一个类型签名中可能有意义: i: 0 iii: 0 iiii: 0 iiiii: undefined vii: 0 di: undefined vi: 0 viii: 0 v: 0 viiii: 0 viiiii: 0 viiiiii: 0 printErr @ Shell_Common.js:513 Shell_Common.js:490 1020 Shell_Common.js:513 1020 printErr @ Shell_Common.js:513 Shell_Common.js:513 抛出异常:abort(1020) at Error at jsStackTrace (http://localhost:6931/App.js:1107:13) at stackTrace (http://localhost:6931/App.js:1124:12) at abort (http://localhost:6931/App.js:162179:44) at nullFunc_ii (http://localhost:6931/App.js:5750:876) at Array.b2184 (http://localhost:6931/App.js:133200:13) at Array._Array_Assign (http://localhost:6931/App.js:8487:38) at _assign (http://localhost:6931/App.js:8791:34) at _copy (http://localhost:6931/App.js:6589:9) at Array._test_array_new (http://localhost:6931/App.js:38249:9) at _pt_run (http://localhost:6931/App.js:37842:31) printErr @ Shell_Common.js:513 App.js:41 Uncaught abort(1020) at Error at jsStackTrace (http://localhost:6931/App.js:1107:13) at stackTrace (http://localhost:6931/App.js:1124:12) at abort (http://localhost:6931/App.js:162179:44) at nullFunc_ii (http://localhost:6931/App.js:5750:876) at Array.b2184 (http://localhost:6931/App.js:133200:13) at Array._Array_Assign (http://localhost:6931/App.js:8487:38) at _assign (http://localhost:6931/App.js:8791:34) …

内容来源: orangeduck/Cello