TencentCloud / tencentcloud-iot-explorer-sdk-embedded-c

SDK for embedded system connect and comunicate with Tencent Cloud IoT Explorer Platform
Other
113 stars 52 forks source link

使用静态库有问题 #20

Closed goog closed 1 year ago

goog commented 1 year ago
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/cheng/abc/GW
➜  GW make install
Consolidate compiler generated dependencies of target client
[ 50%] Linking CXX executable client
/home/cheng/abc/GW/lib/libiot_sdk.a(qcloud_iot_log.c.o): In function `IOT_Log_Gen':
qcloud_iot_log.c:(.text.IOT_Log_Gen+0xb8): undefined reference to `HAL_Timer_current'
qcloud_iot_log.c:(.text.IOT_Log_Gen+0xe0): undefined reference to `HAL_Timer_current'
qcloud_iot_log.c:(.text.IOT_Log_Gen+0xf4): undefined reference to `HAL_Timer_current'
qcloud_iot_log.c:(.text.IOT_Log_Gen+0xfc): undefined reference to `HAL_Timer_current'
qcloud_iot_log.c:(.text.IOT_Log_Gen+0x134): undefined reference to `HAL_Snprintf'
qcloud_iot_log.c:(.text.IOT_Log_Gen+0x154): undefined reference to `HAL_Snprintf'
qcloud_iot_log.c:(.text.IOT_Log_Gen+0x180): undefined reference to `HAL_Vsnprintf'
qcloud_iot_log.c:(.text.IOT_Log_Gen+0x190): undefined reference to `HAL_Vsnprintf'
qcloud_iot_log.c:(.text.IOT_Log_Gen+0x1e4): undefined reference to `HAL_Printf'
qcloud_iot_log.c:(.text.IOT_Log_Gen+0x1ec): undefined reference to `HAL_Printf'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/client.dir/build.make:97:client] 错误 1
make[1]: *** [CMakeFiles/Makefile2:83:CMakeFiles/client.dir/all] 错误 2
make: *** [Makefile:136:all] 错误 2
goog commented 1 year ago

合并静态库。