Solved

Compilation of Pro*C

Posted on 2004-09-07
5
401 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
ID: 11995092
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
ID: 12002823
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
ID: 12004896
$(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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How  do I get an older program to run in Windows 10? 20 110
Path to Python 9 118
T-SQL:  Sigh---Boy, this is fun.... 12 46
ASP/VB email question 4 31
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…

786 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