PDA

View Full Version : Package Compilation Errors: Typedef 'ovm_object' multiply defined



wwashington
03-13-2008, 08:59 AM
Has anyone had the following problem...

// A.sv
package A;
import ovm_pkg::*;

class cat;
...
endpackage: A

//B.sv
package B;
import ovm_pkg::*;
import A::*;

class dog;
...
endpackage

// C.sv
package c;
import ovm_pkg::*;
import A::*;

class rat;
...
endpackage

Depending on the order of B.sv and C.sv, I get the following compilation error when mti 6.3d compiles the last file
Typedef 'ovm_object' multiply defined.

Does anyone have any ideas what I'm doing wrong?

Thanks in advance,
Winefred

dave_59
03-13-2008, 03:59 PM
We would need to see more of your files and command line to see what might be wrong. You should contact Mentor directly if you think this might be a tool issue.

Dave