Solved

Compilation of Pro*C

Posted on 2004-09-07
5
410 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn different types of Android Layout and some basics of an Android App.

734 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