Link to home
Start Free TrialLog in
Avatar of chece
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/precomp/public -I/apps/oracle/ora817/r
dbms/public -I/apps/oracle/ora817/rdbms/demo -I/apps/oracle/ora817/plsql/public
-I/apps/oracle/ora817/network/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/precomp/demo/proc/demo_proc.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.
Avatar of earth man2
earth man2
Flag of United Kingdom of Great Britain and Northern Ireland image

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,
Avatar of chece
chece

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.
ASKER CERTIFIED SOLUTION
Avatar of earth man2
earth man2
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial