Subject: | |
From: | |
Reply To: | Emerson, Tom # El Monte |
Date: | Mon, 11 Oct 1999 12:22:48 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Nope, wrong error -- the compiler is returning
error 1615: Default parameter specification not supported.
Your example shows:
> error 1634: Missing arguments only allowed on intrinsic calls.
Kevin Miller pointed out that the compiler flag "+e" needs to be included in
the info parm/CCOPTS variable in order for "pragma intrinsic" to actually
work with missing parameters. He mentions this was documented, and I dimly
recall this being the case, but it was certainly NOT documented ANYWHERE
CLOSE in the manual to where the "pragma intrinsic" was documented [most
likely, the only place this is documented is in the section on compiler
switches and not cross-referenced anywhere else]
It's these "oh, by the way..." type items that really irks me at times... :)
Tom Emerson
Sr. Systems Analyst
NDC | e COMMERCE
[log in to unmask]
626-258-4309
626-350-3832 FAX
> -----Original Message-----
> From: Stan Sieler [mailto:[log in to unmask]]
> Subject: Re: [HP3000-L] #pragma intrinsic in C/iX
> [I wrote originally]
> > on, and HP's compiler is complaining:
> >
> > error 1615: Default parameter specification not supported.
> >
> > yet per the documentation, you're supposed to use "pragma
> intrinsic" to
> > SPECIFICALLY allow the use of "default parameters"
> >
> > Here is a VERY simple sample that compiles & runs OK with
> CCSC, yet fails
> > w/HP's C
> >
>
> Change "fopen" to "FOPEN" in your pragma intrinsic, and file a bug
> report. Of course, HP may say it's designed to work that way :)
>
> :ccxl t
>
> 1 0 # 1 "T.SOURCE.SIELER"
> 1 0 #pragma intrinsic fopen
> 5 0 main ()
> 6 0 {
> 7 1
> 8 1 short int fid;
> 9 1
> 10 1 fid = FOPEN (
> 11 1 ,
> 12 1 0153,
> 13 1 0300);
> 14 1 }
> cc: "T.SOURCE.SIELER", line 11: error 1634: Missing arguments
> only allowed on intrinsic calls.
> run CCOMXL.PUB.SYS;INFO="";PARM=1;XL="QCOMPXL.PUBNEW.GREEN"
> Program terminated in an error state. (CIERR 976)
> End Run
[p.s. Although I think the copy I cut/pasted to the list showed the
reference to "who" in lower case, I tried with WHO originally, it failed,
then tried "who" on a whim, and it failed as well -- thing is, this was the
first copy I came to in reflection when doing the cut/paste to my
message...]
|
|
|