有时我的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
无关。我发现这是由我的应用中的特定代码行引起的。我可以获得更简洁的错误消息(可能是一个callstack)吗?
答案 0 :(得分:3)
您正在尝试链接到pebble不支持的功能,例如printf
,sprintf
,fopen
等。请确保您正在调用的功能列在Pebble api中文档。