- 论坛徽章:
- 0
|
gcc version 4.2.0
makefile:
INFORMIX_INC = -I$(INFORMIXDIR)/incl/public -I$(INFORMIXDIR)/incl \
-I$(INFORMIXDIR)/incl/esql
LIBS_ESQL = -L$(INFORMIXDIR)/lib/esql -L$(INFORMIXDIR)/lib -lifsq
l \
-lifasf -lifgen -lifos -lifgls -lifglx $(INFORMIXDIR)/lib/esql/checkapi.o
CC = gcc
#编译.o到可执行文件
mainexe:big99.o
$(CC) -o $@ big99.o
big99.o:
$(CC) $(INFORMIX_INC) $(LIBS_ESQL) -o $@ big99.c
错误信息:
gcc -I/informix/incl/public -I/informix/incl -I/informix/incl/esql -L/i
nformix/lib/esql -L/informix/lib -lifsql -lifasf -lifgen -lifos -lifgls -lifglx
/informix/lib/esql/checkapi.o -o big99.o big99.c
In file included from /usr/include/sys/localedef.h:46,
from /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include
/stdlib.h:568,
from big99.ec:3:
/usr/include/sys/localedef31.h:195: error: conflicting types for 'loc_t'
/informix/incl/public/locator.h:120: error: previous declaration of 'loc_t' was
here
make: 1254-004 The error code from the last command is 1. |
|