Packages across multiple files?

Like namespace in C++, where namespace can be spread over multiple files in order to contain multiple class/data structures inside it’s namespace … does similar is possible with packages in SV? i.e.

file1.sv:

package pkg;
..
string str_1 = "i am string1";
..
endpackage: pkg

file2.sv:

package pkg;
..
string str_2 = "i am string2";
..
endpackage: pkg

main.sv:
import pkg::*
// use pkg::str_1;
// use pkg::str_2;

In reply to bhupesh.paliwal:

No, you can only declare a package name once. But you can `include multiple files into a single package.

In reply to dave_59:

Thanks Dave for confirmation.
Actually I am planning to use two different IP packages but it has same package name. The content inside respective package are different though (`include/static-strings).

Just wondering how to use this in setup, provided I have no control on two packages which comes as deliverable to me.

In reply to bhupesh.paliwal:

You do have control; it’s just a matter of how much effort you are willing to put into it.

Some tools have mechanisms to deal with this situation using separate compilation. Please contact your vendor as this forum os not for tool specific help.

In reply to bhupesh.paliwal:

Oh ok. Thanks will check with vendor.