CompuServe Messages

#prototype question

    31-Oct-92 16:25:42
Sb: #prototype question
Fm: Jeff Pratt 76057,3645
To: Doug Walker 71165,2274
I've got a medium-sized c project — several .c and .h files — and have noticed something very puzzling while debugging: it seems like the compiler is forgetting some of my function prototypes! Example: foo.h: double find_z( SURFACE *s, PAIR p ); /* "SURFACE" is a typedef'ed struct; "PAIR" is typedef for an array of 2 doubles */ bar.c: double tz; SURFACE surf; PAIR xy; /* a whole bunch of code…*/ tz = find_z( surf, xy ); When I compile bar.c using the list option to see how things are defined, it says …foo: external function returning int…. I'm compiling with the ansi & strict options on, and just to make sure, I commented out the prototype in foo.h & got the appropriate error message. I just recently upgraded to SAS/C 6.0, and it seems to be working ok (other than this)…. What am I doing???? Thanks in advance for any suggestions…. … Whapped from Jeff P.