2

有时我的 Pebble watchapp 拒绝构建,给出不友好的错误消息:

$ pebble build
[...]
[ 9/13] cprogram: build/src/project_lift.c.7.o build/appinfo.auto.c.7.o -> build/pebble-app.elf
/Users/Pavlo/pebble-dev/PebbleSDK-2.0.1/arm-cs-tools/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/lib/thumb2/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
/Users/thomas/work/arm-eabi-toolchain/build/newlib/arm-none-eabi/thumb2/newlib/libc/reent/../../../../../../../newlib-2012.09/newlib/libc/reent/sbrkr.c:60: undefined reference to `_sbrk'
collect2: error: ld returned 1 exit status

sbrkr.c我与直接无关。我发现这是由我的应用程序中的特定代码行引起的。我可以获得更简洁的错误消息(可能是调用堆栈)吗?

4

1 回答 1

3

您正在尝试链接到 pebble 不支持的函数,例如printfsprintffopen等。确保您正在调用的函数列在 Pebble api 文档中。

于 2014-03-23T03:59:52.670 回答