Vsim error loading DPI shared object file using standard C lib functions, undefined symbol

I opened an SR for this on supportnet.mentor.com and the AE who picked up the ticket quickly figured out what was wrong. I was missing the -lz linker option.

Thanks to Vijay Arputharaj for figuring this out.