|
ball... 님이 쓰신 글 :
: 프로잭트에 포함이 안돼있어서 프로잭트에 MethodSource.h
:
: 파일을 넣어줬거든여 그래도 똑같은 에러가.....
:
: 제가 더 자세하게 소스 보여드릴께여
:
: 이것이 MethodSource.h 입니다
:
: #include <vcl.h>
: #include <stdio.h>
:
: #include "MainSource.h"
: #include "WordDetailViewSource.h"
: #include "WordInputSource.h"
: #include "TotalFindSource.h"
: #include "WordModifySource.h"
:
:
: typedef struct Dept
: {
: AnsiString DeptName;
: int DeptCode;
: }TDept;
:
: typedef TDept* SS_PDept;
:
:
: void Main_CategoryTreeCreat()
: {
: SS_PDept NDept;
: TTreeNodes* pltems;
:
: NDept = new TDept;
: pltems = MainFullTreeView->Items;
: NDept->DeptName = "공병훈";
: NDept->DeptCode = 100;
: pltems->AddObject(NULL,NDept->DeptName,NDept);
:
: }
:
: 이걸 MainSource.cpp에서 다음 함수에서 호출합니다
:
: #include "MethodSource.h" 이렇게 해주고 물론 프로잭트에서도 추가된상태입니다
:
: void __fastcall TMainForm::FormShow(TObject *Sender)
: {
: Main_CategoryTreeCreat();
: }
: //---------------------------------------------------------------------------
:
: 그런데
:
: [C++ Error] MethodSource.h(26): E2451 Undefined symbol 'MainFullTreeView' 이렇게 에러가 나거든여
:
: 정의 되어저 있지 않다고 그래서 제코딩상에 문제가 잇는지 하고 .........
:
:
에러를 보니까 함수 호출 문제가 아니라 MethodSource.h 에 인클루드되어 있는 헤더화일중
MainFullTreeView 가 있는곳을 점검해 보세요 말그대로 그 화일에서 정의되지 않았는데 쓰여진거
같은데요. 혹시 정의된 헤더화일이 있으면 그걸 맨위에다 인클루드 시키도록 위치를 조정해보세요.
|