I may be in the wrong forum. I was trying to include zlib.h from root, not rootcint. I have had no problems including other files such as iostream.h and iomanip.h. The error is occurring at the following lines:
#ifndef ZEXTERN
define ZEXTERN extern
#endif
This is from the zconf.h file that was included with root.