Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: error 1705: Function prototypes are an ANSI feature

 
SOLVED
Go to solution
Trusted Contributor

error 1705: Function prototypes are an ANSI feature

Following is the Sco Unix version of the command used to create the MicroFocus runtime that is required for the gui version of a software package we are currently running text-based:

cob -xve "" *.c -o my_rts

We need to find out how to do the equivalent operation on your HP system.
When attempting to run it on HP-UX 11.0 we get the following output:

magnal:L1000>:cob -xve "" sockets.c -o my_rts
cob -C nolist -xve sockets.c -o my_rts
(Bundled) cc: "sockets.c", line 55: error 1705: Function prototypes are an
ANSI
feature.

Anyone have any ideas? Thanks.
Richard
rdarling@southwickclothing.com
2 REPLIES 2
Acclaimed Contributor
Solution

Re: error 1705: Function prototypes are an ANSI feature

The correct answer to your question isd to purchase ANSI/C or aCC because the bundled c compiler only speaks K&R C and does not understand ANSI C function prototypes. The bundled compiler is really only intended to build kernels.

You could use the free Gnu C compiler available from any of the HP-UX Porting Centre's.

Plan C. Change all the ANSI declarations to K&R:

e.g ANSI

int myfunct(int a, char *b; double c; char d[], float *e)
{
....
....
}

becomes in K&R
int myfunct(a,b,c,d,e)
int a;
char *b,d[];
double c;
float *e;
{
....
....
}



If it ain't broke, I can fix that.
Trusted Contributor

Re: error 1705: Function prototypes are an ANSI feature

Hi Clay,
Our software developer said that it makes sense, and he is going with Plan C:
Change all the ANSI declarations to K&R.

Thanks for the quick response.
Richard
rdarling@southwickclothing.com