c 函数声明,编译错误error C2143: syntax error : missing ')' before 'constant'
void pixel(float Y_space,int Y_HEIGHT,int Y_WIDTH,int f);
main()
{int i=0;
int j,m,n;
…………
想声明函数pixel,可是一编译就出现错误提示:
\zhyadai\DVC\c\YUV\Cpp1.cpp(22) : error C2143: syntax error : missing ')' before 'constant'
G:\zhyadai\DVC\c\YUV\Cpp1.cpp(22) : error C2143: syntax error : missing ';' before 'constant'
G:\zhyadai\DVC\c\YUV\Cpp1.cpp(22) : fatal error C1004: unexpected end of file found
请教高手!
[解决办法]
1、是不是有什么变量与SDK的宏定义重复了?
2、是否包含stdafx.h?
3、如果是C函数,加个extern "C" 前缀