2024-06-20 05:01 AM - last edited on 2024-06-20 06:03 AM by Peter BENSCH
Hi everyone,
I've created a library and placed it in the directory /source/driver/. The library consists of the following files:
The problem I'm encountering is that when I try to use a function from this library in my main.cpp file, I get an "undefined reference" error for the function VN9D30Q100_Init().
I've ensured that the header and source files are correctly written, and I believe the issue lies in how I'm compiling and linking these files in SPC5 Studio.
Can anyone guide me on how to properly include these files in my project settings, or if there's something else I'm missing?
Any help would be greatly appreciated!
Thanks in advance,
Lucifer
Solved! Go to Solution.
2024-06-22 08:37 AM
Hi,
Have you created a proper SPC5 project, or you are just using Eclipse?
If you have a proper SPC5 project all files under /source will be automatically included by the available makefile.
Best Regards,
AutoDevKit Team
2024-06-22 08:37 AM
Hi,
Have you created a proper SPC5 project, or you are just using Eclipse?
If you have a proper SPC5 project all files under /source will be automatically included by the available makefile.
Best Regards,
AutoDevKit Team