Error near "cfg": syntax error, unexpected IDENTIFIER, expecting ')'. Class or package 'mgc_axi4_v1_0_pkg' not found

In reply to Sangeetha N:

What you have might be a workaround, but it is never a solution. If the package mgc_axi4_v1_0_pkg is in a different file you have to compile this file. Then the package is available in your compiled library.