chece
asked on
Compilation of Pro*C
Hi,
When I try to compile a Pro*C program I got following error:
cc -I. -I/apps/oracle/ora817/prec omp/public -I/apps/oracle/ora817/r
dbms/public -I/apps/oracle/ora817/rdbm s/demo -I/apps/oracle/ora817/plsq l/public
-I/apps/oracle/ora817/netw ork/public -c pgsqlldr.c
(Bundled) cc: "pgsqlldr.c", line 166: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pgsqlldr.c", line 174: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pgsqlldr.c", line 182: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pgsqlldr.c", line 203: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pgsqlldr.c", line 224: error 1705: Function prototypes are an ANSI feature.
*** Error exit code 1
Stop.
I use this command to compile:
/usr/bin/make -f /apps/oracle/ora817/precom p/demo/pro c/demo_pro c.mk build EXE=pgsqlldr OBJS=pgsqlldr.o CODE=ansi_c MODE=ansi
Is there any options can put in make command to get rid of these errors?
Thanks in advance.
When I try to compile a Pro*C program I got following error:
cc -I. -I/apps/oracle/ora817/prec
dbms/public -I/apps/oracle/ora817/rdbm
-I/apps/oracle/ora817/netw
(Bundled) cc: "pgsqlldr.c", line 166: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pgsqlldr.c", line 174: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pgsqlldr.c", line 182: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pgsqlldr.c", line 203: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "pgsqlldr.c", line 224: error 1705: Function prototypes are an ANSI feature.
*** Error exit code 1
Stop.
I use this command to compile:
/usr/bin/make -f /apps/oracle/ora817/precom
Is there any options can put in make command to get rid of these errors?
Thanks in advance.
find the script variable CFLAGS in the Makefile. Add the switch to stop your silly compiler being dumb to this. Or buy, borrow or steal a proper ANSI C compiler. I assume you are working on some old Unix variant,
ASKER
hi, do you mean I have to comment out every CFLAGS variables in demo_proc.mk?
I use HP UX B.11.11.
Thanks.
I use HP UX B.11.11.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.