참고  <http://edible.egloos.com/1240411>
LNK2019, LNK1120 Error 발생이유...

1. 헤더를 include 하고 프로젝트에 헤더 .cpp 포함하지 않을 경우...

2. .h .cpp 함수원형 함수호출을 해놓고 정작 함수 구현을 했을 경우...

3. .c .cpp 프로젝트에서 같이 사용할 .h include하고 .cpp include 하지 않을 경우...


 ===============================

-aaa.h-

void CheckLNK2019(int ntest);

-aaa.cpp-

void LNK2019Test() {

CheckLNK2019(nTemp);

}

===============================



< 내가 실수한 부분 >
-test.h-

class test

{

void CheckLNK2019(int ntest);

};

-test.cpp-

void test::LNK2019Test() {       test:: =>이걸 빼먹었다;;;

            (생략)

}

'Programming > Visual Studio' 카테고리의 다른 글

error LNK2005:  (0) 2010.01.13
error LNK2059  (0) 2010.01.13
error LNK1104  (1) 2010.01.13
VisualStudio 메모리 누수 체크 사용하기  (0) 2009.12.19
error LNK2005: 에러  (0) 2009.12.19
Posted by 시그v

블로그 이미지
Computer graphics & Programming
시그v

공지사항

Yesterday
Today
Total

달력

 « |  » 2024.4
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

최근에 올라온 글

최근에 받은 트랙백

최근에 달린 댓글

믹시