. \ethercat.axf:error:l6218e:undefined symbol AppState (referred from STM32APPL.O).

Source: Internet
Author: User
The reason is that I used this data definition: extern. The method of modification is to remove the preceding extern on the line.


extern can be placed before a variable or function to indicate the definition of a variable or function in another file, prompting the compiler to look for its definition in other modules when encountering this variable and function.


Because the variable dwdat is not defined in other files in the program, it is only defined and used in the current file, so it is not necessary to add the extern keyword in front of it.

. \ethercat.axf:error:l6218e:undefined symbol AppState (referred from STM32APPL.O).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.