|
struct _finddata_t fd;
로 변경하시면 컴파일 됩니다.
금영이 님이 쓰신 글 :
: #include <stdio.h>
: #include <io.h>
: #include <conio.h>
:
: int main()
: {
: // resouce addition
: _finddata_t fd;
: long handle;
: int result = 1;
:
: handle = _findfirst("*", &fd);
:
: if(handle == -1)
: return 1;
:
: while(result != -1)
: {
: printf("file : %s\n", fd.name);
: result = _findnext(handle, &fd);
: }
:
: _findclose(handle);
:
: return 0;
: }
:
: 위와 같은 소스로 C로 검파일을 하였더니 '_finddata_t' : undeclared identifier 에러가 발생합니다.
: C++로 컴파일을 하면 정상적으로 수행이 되구요
: C에서 위의 소스를 컴파일 할수 있는 방법을 알고 싶습니다.
: 도와주세요..
|