I am new to comiling c/c++ programs with gcc compilier
unix - AIX version 5.3
gcc compiler version - 4.0.0
My makefile.
# makefile 1.0 08/20/98
#CC = cc
CC = gcc
ESQL = esql
CFLAGS = -Wall
DBSLIB=
DBSLIB=-L${INFORMIXDIR}/lib/esql -L${INFORMIXDIR}/lib `esql -libs`
ALL = hds_near
SOURCELOC =
SOURCES = near.C geo_cus_node.C
OBJECTS = $(SOURCES:.C=.o)
#INCLUDES=-I/usr/lpp/xlC/include -I/usr/include -I$(INFORMIXDIR)/incl/esql -I$(I
NFORMIXDIR)/incl -I/hds/esriapps/infolib -I/usr/lpp/xlC/lib
mylist: $(OBJECT) hds_near
INCLUDES=-I/opt/freeware/include -I/usr/include -I$(INFORMIXDIR)/incl/esql -I$(I
NFORMIXDIR)/incl -I/hds/esriapps/infolib -I/opt/freeware/lib
hds_near: near.o geo_cus_node.o near.h functions.h
$(CC) -b $(INCLUDES) -o hds_near near.o geo_cus_node.o /hds/lib/
shrsysmon.o dbgeo.a /hds/esriapps/infolib/infolib-ibm.a $(DBSLIB) $(INFORMIXDIR
)/lib/netstub.a
# $(CC) -b loadmap:map $(INCLUDES) -o hds_near near.o geo_cus_node.o /hds/lib/shrsysmon.o dbgeo.a /hds/esriapps/infolib/infolib-ibm.a $(DBSLIB) $(INFORMIXDIR)/lib/netstub.a
near.o: near.C near.h dbgeo.a infolib.h functions.h
$(CC) -g $(INCLUDES) -c $(SOURCELOC)near.C
geo_cus_node.o: geo_cus_node.C near.h infolib.h functions.h
$(CC) -g $(DBSLIB) -c $(SOURCELOC)geo_cus_node.C
On commnad line when I type
make -f mymakefile hds_near
I get following error message
gcc -b -I/opt/freeware/include -I/usr/include -I/usr/informix/incl/esql -I/usr/informix/incl -I/hds/esriapps/infolib -I/opt/freeware/lib -o hds_near near.o geo\_cus_node.o /hds/lib/shrsysmon.o dbgeo.a /hds/esriapps/infolib/infolib-ibm.a -L/usr/informix/lib/esql -L/usr/informix/lib \`esql -libs\` /usr/informix/lib/netstub.a
gcc: couldn't run '-I/opt/freeware/include-gcc-4.0.0': No such file or directory
make: 1254-004 The error code from the last command is 1.
Looking at the error message it looks like gcc compiler was not installed properly. I talked to unix admin and he installed the gcc twice and it's the same error message.
Any suggestion on what am I missing?