Home » Developer & Programmer » Precompilers, OCI & OCCI » Pro*C compilation error "error 1705: Function prototypes are an ANSI feature."
Pro*C compilation error "error 1705: Function prototypes are an ANSI feature." [message #94571] Mon, 14 February 2005 06:25 Go to next message
Prashant Petkar
Messages: 1
Registered: February 2005
Junior Member
Hi,

I have a very old Pro*C code (ORACLE 8.1.7) on HP-UX machine that I want to copy and recompile on another HP-UX machine (ORACLE 9.2). Please help:

I get the following error when I do this:
ncsdev04 {ethbat}/eth/ETH_PRODLIB/exe/ppp/csales> makecsalesexe.sh
/usr/ccs/bin/make -f /eth/ETH_PRODLIB/exe/ppp/csales/proc.mk OBJS=gcse100c.o EXE=gcse100c build
/usr/ccs/bin/make -f /eth/ETH_PRODLIB/exe/ppp/csales/proc.mk PROCFLAGS="sqlcheck=semantics userid=/ " PCCSRC=gcse100c I_SYM1
proc sqlcheck=semantics userid=/ iname=gcse100c include=. include=/eth/u01/oracle/product/9.2/precomp/public include=/eth/c

Pro*C/C++: Release 9.2.0.5.0 - Production on Mon Feb 14 09:12:57 2005

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

System default option values taken from: /eth/u01/oracle/product/9.2/precomp/admin/pcscfg.cfg

cc +DA2.0W +DS2.0 -DSS_64BIT_SERVER -I. -I/eth/u01/oracle/product/9.2/precomp/public -I/eth/u01/oracle/product/9.2/rdbmsc
(Bundled) cc: "gcse100c.c", line 459: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "gcse100c.c", line 460: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "gcse100c.c", line 461: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "gcse100c.c", line 462: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "gcse100c.c", line 463: error 1705: Function prototypes are an ANSI feature.
Re: Pro*C compilation error "error 1705: Function prototypes are an ANSI feature." [message #110315 is a reply to message #94571] Sat, 05 March 2005 10:09 Go to previous message
amit_joshi
Messages: 5
Registered: March 2005
Junior Member
Hi Prashant

These are C compiler errors and you are using an old C compiler

probably it does not recognise the newer function declarations

like

int main(int argc , char* argv )

instead would work with

main(argc,argv)
int argc;
char* argv;


Previous Topic: linkage error
Next Topic: how to build Make File in PROC
Goto Forum:
  


Current Time: Tue Dec 17 23:14:58 CST 2024