error C2447: missing function header (old-style formal list?)
Application Tech/C,C++2008. 3. 20. 16:00
에러 원인: 함수구현 부분에도 세미콜론을 붙인 경우..
함수 prototype에는 ;(세미콜론)을 사용한다.
ex)
void add(int ,int ); -> 세미콜른을 붙여야한다.
void main()
{
int sum;
sum = add(10,20);
}
void add(int x,int y); <- 함수구현 부분에도 세미콜론을 붙인 경우..
{
return x+y;
}
출저: http://zeronova.egloos.com/1209718
'Application Tech > C,C++' 카테고리의 다른 글
플랫폼 SDK를 깔아도 Iphlpapi.h가 오류가 날때 (2) | 2008.02.21 |
---|
플랫폼 SDK를 깔아도 Iphlpapi.h가 오류가 날때
Application Tech/C,C++2008. 2. 21. 10:06
Iphlpapi.h 에서 아래와 같은 오류가 날때
--------------------Configuration: EINet - Win32 Release--------------------
Compiling...
INetE.cpp
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(183) : error C2065: 'PMIB_ICMP_EX' : undeclared identifier
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(183) : error C2146: syntax error : missing ')' before identifier 'pStats'
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(183) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(185) : error C2059: syntax error : ')'
Error executing cl.exe.
EINet.dll - 3 error(s), 1 warning(s)
--------------------Configuration: EINet - Win32 Release--------------------
Compiling...
INetE.cpp
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(183) : error C2065: 'PMIB_ICMP_EX' : undeclared identifier
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(183) : error C2146: syntax error : missing ')' before identifier 'pStats'
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(183) : warning C4229: anachronism used : modifiers on data are ignored
C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\Iphlpapi.h(185) : error C2059: syntax error : ')'
Error executing cl.exe.
EINet.dll - 3 error(s), 1 warning(s)
Hi, I had the same problem. In SDK is new Iprtrmib.h which define PMIB_ICMP_EX. But in path for include in VC I had first path to directory whith old Iprtrmib.h (originally in VC6) without PMIB_ICMP_EX. You must replace Iprtrmib.h or change path. Jirka
출처 : 구글 검색
'Application Tech > C,C++' 카테고리의 다른 글
error C2447: missing function header (old-style formal list?) (0) | 2008.03.20 |
---|