Why are functions from an included file showing an error for undefined references?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-04 2:49 PM
I'm using TrueStudio and I am getting an error on functions from another file. The file is in the Inc folder, is included in the project settings Path and Symbols, and my main has the #include (filename) at the top. Also, whenever I ctrl click on the functions, it takes me to the correct file, so it does know where the functions are defined. I'm new to this, but from what I researched the functions should be recognized. Thanks in advance!
- Labels:
-
TrueSTUDIO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-04 3:53 PM
Make sure you have marked each for inclusion with a define in stm32xyz_hal_conf.h
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-05 7:27 AM
Ahh found it! Like I said I'm new to this, but the functions had to be defined in the header file. It was from a library so I'm not sure why it wasn't there already, but regardless thanks for the help!
