Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error C2085

Status
Not open for further replies.

joeGrammar

Programmer
Jun 4, 2001
162
CA
error C2085: 'szViorStatus' : not in formal parameter list

I'm getting a lot og these types of messages when trying to compile c files that have resulted from Pro*C precompilations. Anyone know why one would get this error?


Thanks
 
for example:
void func(int xxx);
void func(int)/*there can be an error, missing the xxx*/
{
}
it can happend only in C, not in C++. John Fill
1c.bmp


ivfmd@mail.md
 
OK that's fine and dandy but here is an example of my code

xxx.h

CFUNCTION LOGIC InitIouByType(
ORG_UNT_TYP_CDE eIouRltnshpOrgTypCde,
IOU_RLTNSHP_TYP_CDE eIouRltnshpTypCde);

error C2085: 'InitIouByType' : not in formal parameter list


xxx.c

ORG_UNT_TYP_CDE eIouRltnshpOrgTypCde;

error C2085: 'eIouRltnshpOrgTypCde' : not in formal parameter list

Every function in the .h file and every variable in the .c file (i.e. every declaration) is giving me these errors, they make no sense. Also the function definitions in the .c file give no error
 
ach, never ye mind, I used me noggin and gots the answer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top