0

I am getting the following error while building the code in VC:
error C2143: syntax error : missing ')' before '&'

on building the below code:

typedef unsigned int uint4;
void	Find(uint4& a, uint4 b, uint4 c);
void    Find(uint4& a, uint4 b, uint4 c)
{
	. . . .
}

I do not see any error in code.
Any idea as to why this error is coming up?

Edited by rkp728: n/a

2
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by mattjbond
0

If your code is as posted then the only problem I can see is the extra ',' in you function prototype.

void	Find(uint4& a, uint4 b, uint4 c[B][I],[/I][/B]);
0

If your code is as posted then the only problem I can see is the extra ',' in you function prototype.

void	Find(uint4& a, uint4 b, uint4 c[B][I],[/I][/B]);

thanks matt for the reply
but thats a typing mistake

0

If your code is as posted then the only problem I can see is the extra ',' in you function prototype.

void	Find(uint4& a, uint4 b, uint4 c[B][I],[/I][/B]);

thanks matt for the reply
but thats the typing mistake here

0

thanks matt for the reply
but thats the typing mistake here

Compiles alright for me which means that the code is not as presented. Where is your typedef? Error indicates that the compiler cannot resolve uint4 to a type correctly. IS the compiler seeing the typedef before it sees the function prototype and definition?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.