home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Problems compiling with mingw make

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2731
Discussions: 200,998, Posts: 2,379,973, Members: 246,366
Old July 2nd, 2003, 09:41 PM   Digg it!   #1 (permalink)
Did you try Google yet?
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Buckhannon, WV
Posts: 3,468
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 July 3rd, 2003, 02:34 AM     #2 (permalink)
Senior Member
 
squeech's Avatar
 
Join Date: May 2002
Location: Rocky Mountain High
Posts: 613
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 July 3rd, 2003, 02:42 AM     #3 (permalink)
Did you try Google yet?
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Buckhannon, WV
Posts: 3,468
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.
__________________
My computer is bigger than yours!
Siliconjunkie is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3100)
Charges against non-tippers dropped.. (22)
Health Care Rationing (17)
Foxconn Blackops x48 MoBo (5)
Nvidia GTX 260 problem (14)
Delete an OS (18)
Laptop with wireless problem. (13)
Wireless Televisions. (12)
windows vista security holes (19)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (9)
[F@H SPAM 11/16/09] ! 1/2 months to.. (41)
windows 7 problem (7)
Recent Discussions
EVGA 9800 gtx help with finding a goo.. (13)
"Documents and Settings" fo.. (7)
Delete an OS (18)
Outputing 1080p from my PC to my 720p.. (0)
panasonic dmr ez48veb recorder (0)
add ram to existing (3)
Need help getting speakers to work (2)
Nvidia GTX 260 problem (14)
Laptop with wireless problem. (13)
Point and Shoot Camera Suggestions. (9)
Is the PSU I received dead? (16)
FreeAgent drive software not x64 comp.. (1)
Intel 5100 AGN issues fixed yet? (28)
Foxconn Blackops x48 MoBo (5)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (41)
Print spooler problem (17)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Size after cutting 700Mb file is 2.5 .. (0)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)


All times are GMT -4. The time now is 12:47 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28