Our forums have moved! Please go to http://forums.accellera.org for the new forums. The forums you see here will remain open for browsing, but are no longer open to new posts.
KMLM List
View email archives for the history of this mailing list.
|
|
|
|
systemc-forum - Re: [Systemc-forum] Warning 505 :Object already exists
|
Message Thread:
Previous |
Next
|
- To: "ojasvi.sharma@xxxxxxxxx" <ojasvi.sharma@xxxxxxxxx>
- From: Paul <paulthegreat@xxxxxxxxx>
- Date: Wed, 22 Jun 2005 08:56:36 +0530
- Cc: systemc-forum@xxxxxxxxxxx
- Send Email to systemc-forum@osci.kavi.com:
- Send new message
- Reply to this message
|
Hi,
If you look at the systemc class hierarchies, you can see that sc_object is
one of the base classes.
sc_module, sc_port, and many other classes derivation can be traced to
sc_object as the topmost base class.
This warning is because of the classic diamond multiple-inheritance.
I think linklayer and linklayer.port_0 are deriving from sc_object twice or
more in your hierarchy. Putting "virtual" in the derivation of your class
hierarchy should solve the problem.
On 6/21/05, ojasvi.sharma@xxxxxxxxx <ojasvi.sharma@xxxxxxxxx> wrote:
>
> What could be the reason for a warning of the kind given below. What
> rectifications would be needed for eliminating the same??
> Warning: (W505) object already exists: linklayer. Latter declaration will
> be ignored
> In file: ../../../../src/systemc/kernel/sc_object.cpp:164
> Warning: (W505) object already exists: linklayer.port_0. Latter
> declaration will be ignored
> In file: ../../../../src/systemc/kernel/sc_object.cpp:164
> * *
> Regards,
> Ojasvi
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any attachments
> to this message are intended
> for the exclusive use of the addressee(s) and may contain confidential or
> privileged information. If
> you are not the intended recipient, please notify the sender at Wipro or
> Mailadmin@xxxxxxxxx immediately
> and destroy all copies of this message and any attachments.
>
--
Regards,
Paul.
|
|
|
Mail converted by the most-excellent MHonArc 2.6.10
|