Ok, I am trying to complile zlib-1.1.4 on Windows XP using mingw make. It apears that I am missing stdio.h somewhere.
Here is the output I get:
Quote:
C:\ntop-2.2\ntop-2.2\gdchart0.94c\zlib-1.1.4>make -f Makefile.mingw
gcc -O3 -DHAVE_UNISTD_H -c -o example.o example.c
example.c:8:19: stdio.h: No such file or directory
In file included from zlib.h:34,
from example.c:9:
zconf.h:239:41: sys/types.h: No such file or directory
zconf.h:240:52: unistd.h: No such file or directory
|
Here is the relavent part of the Makefile.mingw:
Quote:
CC=gcc
CFLAGS=-O3 -DHAVE_UNISTD_H
#CFLAGS=-O3 -DHAVE_UNISTD_H -DUSE_MMAP
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
#CFLAGS=-g -DDEBUG
#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
# -Wstrict-prototypes -Wmissing-prototypes
LDFLAGS=-L. -lz
LDSHARED=gcc
CPP=gcc -E
VER=1.1.4
LIBS=libz.a
SHAREDLIB=libz.so
AR=ar rc
RANLIB=ranlib
TAR=tar
SHELL=/bin/sh
prefix =/usr/local
exec_prefix =${prefix}
libdir =${exec_prefix}/lib
includedir =${prefix}/include
|
My guess is that I need to change the libdir and includedir path to point to the proper places but I cant find stdio.h anywhere.