AnsweredAssumed Answered

C/C++ Undefined Reference Problem

Question asked by snricmn on Mar 20, 2017
Latest reply on Mar 21, 2017 by snricmn

Hi everyone,


I am not good at c/c++. I wanted to implement my own source codes (for example SPI with registers) so in the source folder of the project with main.c, I have mySPI.cpp and mySPI.h file. I added #include <mySPI.h> to main.c but it cannot see the functions.


If i call one of the function like SPI_Configure() from mySPI.cpp it says "undefined reference to SPI_Configure"


It is a simple question but i need help.