cancel
Showing results for 
Search instead for 
Did you mean: 

CubeIDE not linking libraries from header files

smassardi
Associate

Hi

I'm building a project from zero and I'm importing all the needed folders manually by going in 

Project -> properties -> C/C++ General -> Path and Symbols -> Add ...

In this way I added all the folder with the needed files. 

Now, when I build the project I have several errors, as an example: "Undefined Reference to UTIL_TIMER_SetPeriod"

However, If I right click on line with error that contains UTIL_TIMER_SetPeriod, the function is correcly showed in its .h file (stm32_timer.h).

The point is:
- I do have included .....Utilities/timer  folder that contains stm32_timer.h file.

- I do have #include "stm32_timer.h" in the .c file that calls the function.

- As I said, if I right click on UTIL_TIMER_SetPeriod and open its declaration, the function is corretly found in its .h file. 

 

This issue is happening with several other functions and TypeDefs that are acuatlly found with right click and its path included.

 

How could I solve this?

Thanks

 

0 REPLIES 0