Skip to main content
sorrowt
Associate
December 16, 2005
Question

multiple definition of....

  • December 16, 2005
  • 2 replies
  • 887 views
Posted on December 16, 2005 at 08:19

multiple definition of....

This topic has been closed for replies.

2 replies

sorrowt
sorrowtAuthor
Associate
December 9, 2005
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
sorrowtAuthor
Associate
December 16, 2005
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,