undefined reference to a function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-09 10:57 AM
Ive have a probelm with a specific funtion in my main
ive included the source files
ive tried to include the file in the includes
but still i got the message
when i press open declaration is show me the function declaration in the header
and in the c file
ive copied the files from an example project ive tried to compare the include path and didt find a solution what could be the problem
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-09 11:03 AM
You are showing a linker error. So the .c file needs to be added to the sources.
Include path is used for compiling, not linking.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-09 11:14 AM
so what should be the solution I'm still a little confused.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-09 11:40 AM
you need to add it to source files, not just includes, it it shows up in the project explorer right click properties and make sure the file is included in the build process.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
