IT 취미생활.  
Front Page
Tag | Location | Media | Guestbook | Admin   
 
'VS2005'에 해당하는 글(2)
2008.11.13   warning C4013: 'xxxxxxxxxxxx' undefined; assuming extern returning int
2008.08.04   [Error Case - Wince5.0] C4430


warning C4013: 'xxxxxxxxxxxx' undefined; assuming extern returning int
warning C4013: 'xxxxxxxxxxxx' undefined; assuming extern returning int


Error Case 는 아니지만  Warning이 기분이 나빠서 찾아봤습니다.
왜 그럴까?

개발하고 있는 project는 방송용  Middleware로   팀에서 개발할 정도의
규모입니다. 최근 renewal을 하고 있는터라 이것 저것 정리 하다 보니

Header파일이 빠져 있어서 발생한 문제였습니다.
함수는 내부적으로  extern 키워드로 선언이 된 녀석들이라서
실제  Error는 나지 않았습니다.

Header 를 include 시켜주니 문제가 사라졌습니다.


[Error Case - Wince5.0] C4430

오늘도 Builder로 써 열심히 Build를 하고 있었다...
나 <--- 난 거의 팀내 잡부로 수 많은 Link Error를 접해보는 사람이다.

아래와 같은 C4430을 마주했다.

1>.\SubtitlePresentation.cpp(109) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Class에서 Member Function을 선언하고, 실제 구현부에서 return 값을 빼먹었을때,
C4430이 여지 없이 일어난다 한번 테스트를 해보길...





MSDN Error 페이지를 살펴 보니 아래와 같은 경우 발생하게 된다.

Error Message

missing type specifier - int assumed. Note: C++ does not support default-int

This error can be generated as a result of compiler conformance work that was done for Visual C++ 2005: all declarations must now explicitly specify the type; int is no longer assumed. See Breaking Changes in the Visual C++ 2005 Compiler for more information.

C4430 is always issued as an error. You can turn off this warning with the #pragma warning or /wd; see warning or /w, /Wn, /WX, /Wall, /wln, /wdn, /wen, /won (Warning Level) for more information.

Example

The following sample generates C4430.

  Copy Code
// C4430.cpp
// compile with: /c
struct CMyClass {
   CUndeclared m_myClass;  // C4430
   int m_myClass;  // OK
};

typedef struct {
   POINT();   // C4430
   // try the following line instead
   // int POINT();
   unsigned x;
   unsigned y;
} POINT;



BLOG main image
취미생활
 Notice
 Category
분류 전체보기 (191)
매일매일갱생 (83)
서버개발 (1)
임베디드개발 (12)
Programming (80)
Personal Projects (6)
유용한 프로그램 (0)
 TAGS
It 개발자 M480 MP3 Windows Mobile6.0 알고리즘 1seg 군대 DirectShow Linux warning Debug Java spam mail 퇴사 project isdbt 티스토리 초대장 서태지 English debugging 벨소리 변경 음식 Brazil 티스토리초대 C++ Error Case ISDB-T Wince5.0 DVB 미라지폰 VC++ Dshow 영어 이메일 Algorithm DVB-T 출장 C english email
 Calendar
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
 Recent Entries
 Recent Comments
 Recent Trackbacks
 Archive
 Link Site
zextor
괴짜 프로그래머의 일상사~@@
Gag & Peace, and more..
Kazakhstan Almaty.......
Min-A
Sadgarret
Steve Yoon's log
가슴 뛰는 삶을 살아라
오스틴 파워
GUI sin
melanie parker_Lady
제레미의 TV 2.0 이야기..
 Visitor Statistics
Total :
Today :
Yesterday :
rss