Hello. I have no trouble compiling the code thats in the generated files from cube MX, that is main.c etc.
But when I add my own source and header files, I get the undefined reference to a function call: undefined reference to `stts751_init'. The header file is included in main.c where the function is called, and I have checked for typos.
Is there a specific way that a source file should be added to get compiled?
Edit: typo
Hello. I have no trouble compiling the code thats in the generated files from cube MX, that is main.c etc. But when I add my own source and header files, I get the undefined reference to a function call: undefined reference to `stts751_init'. The header file is included in main.c where the function is called, and I have checked for typos. Is there a specific way that a source file should be added to get compiled? Edit: typo