Skip to main content
DMeye
Associate
September 4, 2018
Question

Why are functions from an included file showing an error for undefined references?

  • September 4, 2018
  • 2 replies
  • 750 views

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!

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
September 4, 2018

Make sure you have marked each for inclusion with a define in stm32xyz_hal_conf.h

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
DMeye
DMeyeAuthor
Associate
September 5, 2018

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!