Solved

Compilation of Pro*C

Posted on 2004-09-07
5
396 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
noX challenge 17 91
stringclean challenge 26 70
Hide vba in gp 7 79
program a usb light to turn on when needed 6 48
This article will show, step by step, how to integrate R code into a R Sweave document
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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…

932 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

14 Experts available now in Live!

Get 1:1 Help Now