Operating System - OpenVMS
1832990 Members
2474 Online
110048 Solutions
New Discussion

CC-E-PARMTYPLIST? please explain

 
John Donovan_4
Frequent Advisor

CC-E-PARMTYPLIST? please explain

Not being very proficient in C coding, can someone explain what the complaint listed below means? OpenVMS 7.3-2 Compaq C 6.5-001

ULONG uaf_read(int key, void *value, ULONG match, UAF_REC *rec); .................................................................................................^
%CC-E-PARMTYPLIST, Ill-formed parameter type list.
at line number 90 in file
[WEBTOOLS.PASSWORD_APPS.CHANGE_PASSWORD]UAF_UTILS.H;1
"Difficult to see, always in motion is the future..."
3 REPLIES 3
Lawrence Czlapinski
Trusted Contributor

Re: CC-E-PARMTYPLIST? please explain

John, you don't have a data type before UAF_REC.
Lawrence
John Gillings
Honored Contributor

Re: CC-E-PARMTYPLIST? please explain

John,
Addng the qualifier /WARN=VERBOSE to your compilation can sometimes help:

$ cc test/warn=verbose

int uaf_read(int key, void *value, int match, UAF_REC *rec);
..............................................^
%CC-E-PARMTYPLIST, Ill-formed parameter type list.
at line number 2 in file HP$:[ALPHAPROGRAMMING2]TEST.C;2
Description: While processing a function declaration, an invalid parameter type list was encountered.
User Action: Correct the program syntax.
A crucible of informative mistakes
Craig A Berry
Honored Contributor

Re: CC-E-PARMTYPLIST? please explain

John,

What's going on here really depends on what UAF_REC is. Is it a macro? Is it a typedef? You can compile with CC/LIST/SHOW=ALL to get a .LIS file that may have more information. It will, for example, show macro expansions.