Solved

Compilation of Pro*C

Posted on 2004-09-07
5
393 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:chece
  • 2
5 Comments
 
LVL 22

Expert Comment

by:earth man2
Comment Utility
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,
0
 

Author Comment

by:chece
Comment Utility
hi, do you mean I have to comment out every CFLAGS variables in demo_proc.mk?
I use HP UX B.11.11.
Thanks.
0
 
LVL 22

Accepted Solution

by:
earth man2 earned 250 total points
Comment Utility
$(ORACLE_HOME)/rdbms/lib/env_rdbms.mk
defines C2O as something like
C2O=$(CC) -c $(INCLUDE) $(PCCI) $<

There might be a HP UX B.11.11 cc compiler  flag to allow function prototypes, try man cc  Add that flag to the line above.

If there isn't you will have to edit out all the prototypes to Kernighan and Ritchie form.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now