EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Error[e27]

Started by merapcb October 26, 2011
I am getting the following error:

Error[e27]: Entry "uThisData" in module ABC ( ABC.r43 ) redefined in module XYZ ( XYZ.r43 )

But, I don't see it defined in ABC.c (full search turns up nothing) so how can the linker be saying so? (and yes I have forced a complete Rebuild All)

Thanks

Beginning Microcontrollers with the MSP430

> Error[e27]: Entry "uThisData" in module ABC ( ABC.r43 ) redefined in
> module XYZ ( XYZ.r43 )
>
> But, I don't see it defined in ABC.c (full search turns up nothing) so
> how can the linker be saying so? (and yes I have forced a complete
> Rebuild All)

You'll have forgotten an 'extern' in a header file somewhere.

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
SolderCore running Defender... http://www.vimeo.com/25709426

Yes but if a complete search of the entire project reveals no such thing?

--- In m..., "Paul Curtis" wrote:
>
> > Error[e27]: Entry "uThisData" in module ABC ( ABC.r43 ) redefined in
> > module XYZ ( XYZ.r43 )
> >
> > But, I don't see it defined in ABC.c (full search turns up nothing) so
> > how can the linker be saying so? (and yes I have forced a complete
> > Rebuild All)
>
> You'll have forgotten an 'extern' in a header file somewhere.
>
> --
> Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> SolderCore running Defender... http://www.vimeo.com/25709426
>

> -----Original Message-----
> From: m... [mailto:m...] On Behalf
> Of merapcb
> Sent: Wednesday, October 26, 2011 10:05 AM
> To: m...
> Subject: [msp430] Re: Error[e27]
>
>
> Yes but if a complete search of the entire project reveals no such
> thing?
>
> --- In m..., "Paul Curtis" wrote:
> >
> > > Error[e27]: Entry "uThisData" in module ABC ( ABC.r43 ) redefined
> in
> > > module XYZ ( XYZ.r43 )
> > >
> > > But, I don't see it defined in ABC.c (full search turns up nothing)
> so
> > > how can the linker be saying so? (and yes I have forced a complete
> > > Rebuild All)
> >
> > You'll have forgotten an 'extern' in a header file somewhere.
> >
> > --
> > Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> > SolderCore running Defender... http://www.vimeo.com/25709426
> >
>
>
>
>
>
>
>
>
>
is Redd trying to tell us sometimes silence is the best way to solve
things? Or did you try and send something and it did not go through ^^?

Have you checked all the .h that are included in the .c sometimes they
sneak into those, and can cause an error like that.

Jake
On 10/26/2011 8:09 AM, Redd, Emmett R wrote:
>
> > -----Original Message-----
> > From: m...
> [mailto:m... ] On
> Behalf
> > Of merapcb
> > Sent: Wednesday, October 26, 2011 10:05 AM
> > To: m...
> > Subject: [msp430] Re: Error[e27]
> >
> >
> > Yes but if a complete search of the entire project reveals no such
> > thing?
> >
> > --- In m... ,
> "Paul Curtis" wrote:
> > >
> > > > Error[e27]: Entry "uThisData" in module ABC ( ABC.r43 ) redefined
> > in
> > > > module XYZ ( XYZ.r43 )
> > > >
> > > > But, I don't see it defined in ABC.c (full search turns up nothing)
> > so
> > > > how can the linker be saying so? (and yes I have forced a complete
> > > > Rebuild All)
> > >
> > > You'll have forgotten an 'extern' in a header file somewhere.
> > >
> > > --
> > > Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> > > SolderCore running Defender... http://www.vimeo.com/25709426
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> >
I hit the Send button when I really meant to close the window.

The thought I was going to send is that, "sometimes the files one is searching/editing are not the files the IDE is using to build the project." It can be very confusing/frustrating when this happens so double-check you and the IDE are agreeing on which files are being used.

Emmett Redd, Ph.D., Professor mailto:E...@MissouriState.Edu
Physics, Astronomy, and Materials Science Office: 417-836-5221
Missouri State University Dept: 417-838-5131
901 S NATIONAL AVENUE FAX: 417-836-6226
SPRINGFIELD, MO 65897 USA Lab: 417-836-3770

It is clear that thought is not free if the profession of certain opinions make it impossible to earn a living. -- Bertrand Russel

> -----Original Message-----
> From: m... [mailto:m...] On Behalf
> Of Jake G.
> Sent: Wednesday, October 26, 2011 10:16 AM
> To: m...
> Subject: Re: [msp430] Re: Error[e27]
>
> is Redd trying to tell us sometimes silence is the best way to solve
> things? Or did you try and send something and it did not go through ^^?
>
> Have you checked all the .h that are included in the .c sometimes they
> sneak into those, and can cause an error like that.
>
> Jake
> On 10/26/2011 8:09 AM, Redd, Emmett R wrote:
> >
> >
> >
> > > -----Original Message-----
> > > From: m...
> > [mailto:m... ] On
> > Behalf
> > > Of merapcb
> > > Sent: Wednesday, October 26, 2011 10:05 AM
> > > To: m...
> > > Subject: [msp430] Re: Error[e27]
> > >
> > >
> > > Yes but if a complete search of the entire project reveals no such
> > > thing?
> > >
> > > --- In m... ,
> > "Paul Curtis" wrote:
> > > >
> > > > > Error[e27]: Entry "uThisData" in module ABC ( ABC.r43 )
> redefined
> > > in
> > > > > module XYZ ( XYZ.r43 )
> > > > >
> > > > > But, I don't see it defined in ABC.c (full search turns up
> nothing)
> > > so
> > > > > how can the linker be saying so? (and yes I have forced a
> complete
> > > > > Rebuild All)
> > > >
> > > > You'll have forgotten an 'extern' in a header file somewhere.
> > > >
> > > > --
> > > > Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> > > > SolderCore running Defender... http://www.vimeo.com/25709426
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > > unsubscribe%40egroups.com>
> > >
> > >
Clearly, it is not a complete search.

On 26 Oct 2011, at 16:05, merapcb wrote:

>
> Yes but if a complete search of the entire project reveals no such thing?
>
> --- In m..., "Paul Curtis" wrote:
>>
>>> Error[e27]: Entry "uThisData" in module ABC ( ABC.r43 ) redefined in
>>> module XYZ ( XYZ.r43 )
>>>
>>> But, I don't see it defined in ABC.c (full search turns up nothing) so
>>> how can the linker be saying so? (and yes I have forced a complete
>>> Rebuild All)
>>
>> You'll have forgotten an 'extern' in a header file somewhere.
>>
>> --
>> Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
>> SolderCore running Defender... http://www.vimeo.com/25709426
>>
>
OK so if you think it is not a complete search, what is it that the IAR's "Find in All Files" is not finding? (and assuming, as it is, that it is searching in all project and include files). Even when searching in all files (*.*) there is no reference to the module it says has the object also.
--- In m..., Paul Curtis wrote:
>
> Clearly, it is not a complete search.
>


Memfault Beyond the Launch