Search found 2 matches
- Sun Jun 05, 2022 1:58 pm
- Forum: ESP-IDF 中文讨论版
- Topic: undefined reference to `app_main'
- Replies: 11
- Views: 42416
Re: undefined reference to `app_main'
Check the \esp-idf\tools\cmake\project.cmake file, it define the component directory of CMakeLists.txt. if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/main") __project_component_dir("${CMAKE_CURRENT_LIST_DIR}/main") endif() So if the app_main function directory is not this main directory, need to modify the p...
- Sun Jun 05, 2022 1:36 pm
- Forum: ESP-IDF 中文讨论版
- Topic: undefined reference to `app_main'
- Replies: 11
- Views: 42416
Re: undefined reference to `app_main'
Check the CMakeLists.txt file of the source code directory ,add it into compile. # This file was automatically generated for projects # without default 'CMakeLists.txt' file. #FILE(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/src/*.*) #idf_component_register(SRCS ${app_sources}) idf_component_regist...