»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 07-02-2003, 06:41 PM   #1 (permalink)
Banned
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Houston, TX
Posts: 1,595
Siliconjunkie is on a distinguished road
Send a message via AIM to Siliconjunkie
Problems compiling with mingw make

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.

Siliconjunkie is offline   Reply With Quote
Old 07-02-2003, 11:34 PM   #2 (permalink)
Registered User
 
squeech's Avatar
 
Join Date: May 2002
Location: Rocky Mountain High
Posts: 522
squeech is on a distinguished road
If you are running Visual Studio in XP, then the C++ libraries like stdio.h and unistd.h are located in the "include" directory in the visual studio folder (e.g. <drive letter>:\Program Files\Microsoft Visual Studio\VC98\Include)...

However, if you are just compiling the source so that you can include the libraries in a later program, get the pre-built *.h files here. Or here is a link to the ZIP file

Just my two cents...
__________________
Talking in numbers doesn't make you smarter.
squeech is offline   Reply With Quote
Old 07-02-2003, 11:42 PM   #3 (permalink)
Banned
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Houston, TX
Posts: 1,595
Siliconjunkie is on a distinguished road
Send a message via AIM to Siliconjunkie
I am compiling to include in something else. Those will save me this step. I will use those and see how the next steps go.

Thanks alot.
Siliconjunkie is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 04:07 AM.