Search found 20 matches

by greenstone
Fri Sep 06, 2024 7:58 am
Forum: General Discussion
Topic: undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'
Replies: 2
Views: 1122

Re: undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'

MicroController wrote:
Fri Sep 06, 2024 3:39 am
Is port_det_stat() declared as extern "C" when used from C++? (cf. https://embeddedartistry.com/blog/2017/ ... -extern-c/)
yes,the .h header file include "extren "C"
by greenstone
Fri Sep 06, 2024 1:59 am
Forum: General Discussion
Topic: undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'
Replies: 2
Views: 1122

undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'

Why does a simple project compile successfully by changing the source file A.cpp of custom component A to A.c, otherwise there will be a link error for undefined reference to "port_det_stat() - (in custom component B)"
by greenstone
Wed Sep 04, 2024 1:07 am
Forum: General Discussion
Topic: undefined reference to when linking
Replies: 2
Views: 1950

Re: undefined reference to when linking

Thank you for your reply. I will give it a try, but the tutorial video I saw did not require this. Instead, it stated that 'main' is a special component that includes default components from the installation directory and custom components from the project directory.
by greenstone
Tue Sep 03, 2024 2:07 am
Forum: General Discussion
Topic: undefined reference to when linking
Replies: 2
Views: 1950

undefined reference to when linking

Hello everyone, the main component calls a function in component A(wifi_app), and component A calls a function in component B(port_event). Component A has added a dependency on component B to its CMakeLists, but when linking, the function defined in component B cannot be found, prompting an "undefin...
by greenstone
Mon Sep 02, 2024 9:56 am
Forum: ESP-IDF 中文讨论版
Topic: 工程链接时候出现undefined reference to错误
Replies: 2
Views: 2346

Re: 工程链接时候出现undefined reference to错误

我把 event_handler中调用的port_event组件中定义的port_set/get/clean_status函数,直接用xEventGroupSet/get/cleanBits(即freertos组件的API函数替代),工程编译就成功了。虽然成功,但是还想请大神指点下,自定义的组件,难道不能被别的组件访问吗?而且还加入了依赖,百思不得解。
by greenstone
Mon Sep 02, 2024 9:56 am
Forum: ESP-IDF
Topic: undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'
Replies: 2
Views: 1242

Re: undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'

我把 event_handler中调用的port_event组件中定义的port_set/get/clean_status函数,直接用xEventGroupSet/get/cleanBits(即freertos组件的API函数替代),工程编译就成功了。虽然成功,但是还想请大神指点下,自定义的组件,难道不能被别的组件访问吗?而且还加入了依赖,百思不得解。
by greenstone
Mon Sep 02, 2024 9:55 am
Forum: General Discussion
Topic: undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'
Replies: 1
Views: 1149

Re: undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'

我把 event_handler中调用的port_event组件中定义的port_set/get/clean_status函数,直接用xEventGroupSet/get/cleanBits(即freertos组件的API函数替代),工程编译就成功了。虽然成功,但是还想请大神指点下,自定义的组件,难道不能被别的组件访问吗?而且还加入了依赖,百思不得解。
by greenstone
Mon Sep 02, 2024 8:54 am
Forum: General Discussion
Topic: undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'
Replies: 1
Views: 1149

undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'

Project as attached,ubuntu 20.04 和ESP-IDF V5.1.0 building,idf_py_stdout_output_14368 as folling: How can I solve this problem,I hope to receive your help. ../../../components/driver/deprecated/driver/timer.h:16:2: warning: #warning "legacy timer group driver is deprecated, please migrate to driver/g...
by greenstone
Mon Sep 02, 2024 6:19 am
Forum: ESP-IDF
Topic: undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'
Replies: 2
Views: 1242

undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)'

Hi guys. When I tried to compile my source, it failed saying undefined reference to `port_clear_status(EVENT_GROUP_SELECT_T, unsigned long)' . Here is my directory structure. - components -- hal_param_manage --------hal_param_manage.c --------hal_param_manage.h CMakeLists.txt --linux_list --------li...