Skip Nav
Home » Forums » SystemC Forum

Icon - KMLM List KMLM List

View email archives for the history of this mailing list.

List Home All Archives Dates Threads Authors Subjects
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
Send new message
Reply to this message
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.


By Date: Previous | Next Current Thread By Thread: Previous | Next

  Mail converted by the most-excellent MHonArc 2.6.10