comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: LNK2005 error in ObjectAda compiler
Date: 1999/06/24
Date: 1999-06-24T00:00:00+00:00	[thread overview]
Message-ID: <37723F72.9E7FD0A6@averstar.com> (raw)
In-Reply-To: 7kss9v$uj$1@nnrp1.deja.com

dommo1234@my-deja.com wrote:
> 
> In article <930161697.632.27@news.remarQ.com>,
>   "Vladimir Olensky" <vladimir_olensky@yahoo.com> wrote:
> > This is the exactly the same bug that I described here on 21.06.99
> providing
> > piece of assembler code.
> > Look at my post "OA bug ?" and  Tucker Taft  response to it with all
> info
> > about that bug.
> >
> > Regards,
> > Vladimir Olensky
> >
> > dommo1234@my-deja.com wrote in message <7kr499
> $cfi$1@nnrp1.deja.com>...
> > >All,
> > >
> > >I'm using ObjectAda V7.1.105 (special edition), and have come up
> against
> > >a rather strange error at build time. The error is :-
> > >
> > >error LNK2005: xxxxx.yyyyyy__acc_cleanup already defined in xxxxx.obj
> > >fatal error LNK1169: one or more multiply defined symbols found
> > >
> > >
> >
> >
> Hmmm, in his response to the post "OA bug ?", Tucker says that the
> problem only occurs when the Controlled type is not fully defined
> before the two access types. This is not the case in my example
> however, so I wonder if this is not the same bug.

It is the same bug.

I probably should have made mention of "freezing point" rather
than "fully defined."  A tagged type is not considered "fully defined"
in this context until overridings of its primitive subprograms have
occurred.  Hence, if you move the declarations of Initialize,
Adjust, and Finalize up in front of the access type declarations,
it should not end up with multiple definitions.

> ...
> Rgds,
> Dom.


-- 
-Tucker Taft   stt@averstar.com   http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions  (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.)   Burlington, MA  USA




      reply	other threads:[~1999-06-24  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-23  0:00 LNK2005 error in ObjectAda compiler dommo1234
1999-06-23  0:00 ` Vladimir Olensky
1999-06-24  0:00   ` dommo1234
1999-06-24  0:00     ` Tucker Taft [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox