먼저, 에러가 생기는 경우는 다음과 같군요.
#pragma hdrstop
#include
#include
using namespace std;
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char* argv[])
{
cout << "헬로우, 워얼드!\n";
cout << "아무 키나 누르시오...\n";
getch();
return 0;
}
에러 메시지 :
[BCC32 Error] File1.cpp(4): E2209 Unable to open include file 'conio'
[BCC32 Error] File1.cpp(13): E2268 Call to undefined function 'getch'
그런데 에러 없이 잘 컴파일 되는 경우는,
#include <iostream>
#include <conio>
using namespace std;
이 구문이
#pragma hdrstop
앞에 있을 때는 잘 되네요.
지시자를 무시하면 안되겠네요...
|