from Error message, my guess mem_intf hasnt compiled before module where you instantiate it. Check if you have wrong order of compilation or missed to compile interface file.
PS : Please use code tags when you add it in post, so your code will be more readable!