In reply to vijaykumarvec:
What you say you are compiling does not make sense. File 2 `includes file 1 and 3, you would need to compile file 2 first, and not put file 1 and 3 on the command line. File 4 imports ram_pkg, which is defined by the contents of file 2, it would not compile successfully unless all of the other files compiled successfully.