Search found 2 matches
- Sun Dec 10, 2023 3:39 am
- Forum: ESP-IDF
- Topic: Multiple definition linker issue
- Replies: 1
- Views: 7040
Re: Multiple definition linker issue
Update: I have figured it out. The main issue was the following line: target_link_libraries(${COMPONENT_LIB} INTERFACE DeviceLib) INTERFACE should not be used. It needs to be PRIVATE linkage. However, with PRIVATE linkage, the "main" component does not receive the required headers. So what I ended u...
- Sat Dec 09, 2023 9:49 pm
- Forum: ESP-IDF
- Topic: Multiple definition linker issue
- Replies: 1
- Views: 7040
Multiple definition linker issue
Hello all, I would be grateful to get help with this issue. I am running into a multiple definition issue when linking my ESP-IDF project and cannot figure out why. I am using external CMake libraries and linking them to a custom ESP-IDF component called "Device". Then, my main component depends on ...