Home > other >  Using Linux rtos environment compiler LeXin esp - 8266 aliyun error, for bosses to give directions
Using Linux rtos environment compiler LeXin esp - 8266 aliyun error, for bosses to give directions

Time:12-09

Generating esp8266. Project. Ld
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:

reference 1st floor glen30 response:
multiple definition of ` os_htole16 '
Multiple definition of ` os_le16toh '

Link problem, a heavy function defines


Is there any solution, I have just found this function directly, commented out for him, compile, but doesn't run properly

CodePudding user response:

Now is the code defines a, then there is the repository defines it again?

CodePudding user response:

reference yoveldf reply: 3/f
now is defined in the code once, then there is the repository defines it again?

I don't know, is a sample program compile, don't know how to return a responsibility, not available in the Internet related issues, I will according to the comments of the two functions, compiled passed, but the serial port output after burn is stil the

CodePudding user response:

The code should be have not set baud rate of serial well first look at the specific what went wrong, or you may have a look whether let code calls you comment out the function to see the effect

CodePudding user response:

reference 5 floor yoveldf reply:
the code should be have not set baud rate of serial well first look at the specific what went wrong, or you may have a look whether let code calls you comment out the effect of the function to see

Well, just don't know the function would comment out, no matter, anyway, now it is no problem
  • Related