-MF CMakeFiles\awtk.dir\awtk\src\tkc\serial_helper.c.o.d -o CMakeFiles/awtk.dir/awtk/src/tkc/serial_helper.c.o -c D:/awtk-android/awtk-android/build/demoui/app/src/main/cpp/awtk/src/tkc/serial_helper.c
D:/awtk-android/awtk-android/build/demoui/app/src/main/cpp/awtk/src/tkc/serial_helper.c:1004:10: error: call to undeclared function 'tk_socket_wait_for_data'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
return tk_socket_wait_for_data(fd, timeout_ms);
^
1 error generated.
开发环境的具体配置: windows系统版本:win11 android-studio-2023.1.1.28-windows jdk-17_windows-x64_bin android sdk的版本:android 14.0 API34 android ndk的版本:26.2.11394342
编译报错:
demoui/app/src/main/cpp/awtk/src/tkc/serial_helper.c第1004行: return tk_socket_wait_for_data(fd, timeout_ms);//该函数未声明导致报错
解决: