cancel
Showing results for 
Search instead for 
Did you mean: 

multiple definition of....

sorrowt
Associate II
Posted on December 16, 2005 at 08:19

multiple definition of....

2 REPLIES 2
sorrowt
Associate II
Posted on December 09, 2005 at 06:24

Hello all

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,

sorrowt
Associate II
Posted on December 16, 2005 at 08:19

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!

can you advice please?

Regards,