我正在尝试在CC3100SDK_1.2.0中构建mqtt_client项目,以便稍后我可以将它集成到getting_started_with_wlan_station项目中以进行进一步的工作。
正如mqtt_client.pdf文档中所建议的,我从cc3100-sdk \ platform \ msp430f5529lp \ library_project_ccs构建了osi_lib.lib和mqtt.a。 在构建mqtt_client项目时,我收到多个链接器错误,如下所示
<Linking>
error #16019-D: file
"C:/TI/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/library_project_ccs
/osi_lib/Debug/osi_lib.lib<osi_freertos.obj>" specifies small data memory
model, which is not compatible with restricted large data memory model
specified in a previous file or on the command line
error #16019-D: file
"C:/TI/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/library_project_ccs
/osi_lib/Debug/osi_lib.lib<queue.obj>" specifies small data memory model,
which is not compatible with restricted large data memory model specified in
a previous file or on the command line
error #16019-D: file
"C:/TI/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/library_project_ccs
/osi_lib/Debug/osi_lib.lib<tasks.obj>" specifies small data memory model,
which is not compatible with restricted large data memory model specified in
a previous file or on the command line
error #16019-D: file
"C:/TI/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/library_project_ccs
/osi_lib/Debug/osi_lib.lib<port.obj>" specifies small data memory model,
which is not compatible with restricted large data memory model specified in
a previous file or on the command line
error #16019-D: file
"C:/TI/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/library_project_ccs
/osi_lib/Debug/osi_lib.lib<portext.obj>" specifies small data memory model,
which is not compatible with restricted large data memory model specified in
a previous file or on the command line
error #16019-D: file
"C:/TI/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/library_project_ccs
/osi_lib/Debug/osi_lib.lib<heap_3.obj>" specifies small data memory model,
which is not compatible with restricted large data memory model specified in
a previous file or on the command line
error #16019-D: file
"C:/TI/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/library_project_ccs
/osi_lib/Debug/osi_lib.lib<list.obj>" specifies small data memory model,
which is not compatible with restricted large data memory model specified in
a previous file or on the command line
error #10010: errors encountered during linking; "mqtt_client.out" not built
我使用输出格式为eabi(ELF)的相同编译器TIv16.12.0.STS对所有这些进行了构建。 我尝试为项目中的两个库更改链接器的文件搜索路径,例如“{PROJECT_LOC} /../ osi_lib / Debug / osi_lib.lib”。但是它给出了一些其他错误。
我非常感谢以下问题的答案: