I have a strange problem, I just included the ST library but I got a linker error as below. that happen with RCCU and GPIO with all the functions defined in the Header file of RCCU and GPIO. the error of one of them is: objects\S1D13305.o(.text+0x0): In function `RCCU_Div2Status': .\source\/rccu.h:157: multiple definition of `RCCU_Div2Status' objects\main.o(.text+0x0):.\source\/rccu.h:157: first defined here Any help pls? Regards,
Actually I did nothing with the project yet, just importing the gpio.h causes that problem. I came over that by changing the ''inline'' functions in the gpio.h into ''static inline''. It works now but am not sure if its safe to do so!