LD build/example_solo. The elf
/home/Chen/esp/xtensa - lx106 - elf/bin/../lib/GCC/xtensa - lx106 - elf/8.4.0/../../../../xtensa - lx106 - elf/bin/ld:/home/Chen/esp/ESP8266_RTOS_SDK/components/esp8266/lib/libsmartconfig (sc_ieee80211. O) : a function in ` os_htole16 ':
(. Text. Os_htole16 + 0 x0) : multiple definition of ` os_htole16 ';/home/Chen/esp/ESP8266_RTOS_SDK/esp - aliyun - master/examples/solo/example_solo/build/esp - aliyun - master/libesp - aliyun - master. A (os_misc. O) :/home/Chen/esp/ESP8266_RTOS_SDK/esp - aliyun - master/iotkit - embedded/dev_bind/impl/OS/os_misc. C: 26: first defined here
/home/Chen/esp/xtensa - lx106 - elf/bin/../lib/GCC/xtensa - lx106 - elf/8.4.0/../../../../xtensa - lx106 - elf/bin/ld:/home/Chen/esp/ESP8266_RTOS_SDK/components/esp8266/lib/libsmartconfig (sc_ieee80211. O) : a function in ` os_le16toh ':
(. Text. Os_le16toh + 0 x0) : multiple definition of ` os_le16toh ';/home/Chen/esp/ESP8266_RTOS_SDK/esp - aliyun - master/examples/solo/example_solo/build/esp - aliyun - master/libesp - aliyun - master. A (os_misc. O) :/home/Chen/esp/ESP8266_RTOS_SDK/esp - aliyun - master/iotkit - embedded/dev_bind/impl/OS/os_misc. C: 42: first defined here
/home/Chen/esp/xtensa - lx106 - elf/bin/../lib/GCC/xtensa - lx106 - elf/8.4.0/../../../../xtensa - lx106 - elf/bin/ld: warning: alignment of symbol ` zero_mac 'in/home/Chen/esp/ESP8266_RTOS_SDK/components/esp8266/lib/libsmartconfig. A (sc_ieee80211. O) is smaller than 4 in/home/Chen/esp/ESP8266_RTOS_SDK/esp - aliyun - master/examples/solo/example_solo/build/esp - aliyun - master/libesp - aliyun - master. A (zconfig_protocol. O)
Collect2: error: ld returned 1 exit status
Make: * * * [/home/Chen/esp/ESP8266_RTOS_SDK/make/project. The mk: 510:/home/Chen/esp/ESP8266_RTOS_SDK/esp - aliyun - master/examples/solo/example_solo/build/example_solo elf] error 1
Above is wrong information, the environment is basically set up good, can be normal compile RTOS_SDK sample, then to download them from the LeXin ali cloud SDK and compile them to the folder in the paper is the mistake, this is what circumstance
CodePudding user response:
Multiple definition of ` os_htole16 'Multiple definition of ` os_le16toh '
The link problem, a heavy function definition
CodePudding user response: