g ++에서 Windows C++ 프로그램을 컴파일하려고합니다. 이것이 내가 얻는 것입니다.g ++에서 Windows C++ 프로그램 컴파일
/usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
btree.cpp:1204: error: ‘_TCHAR’ has not been declared
btree.cpp: In function ‘int _tmain(int, int**)’:
btree.cpp:1218: error: ‘__int64’ was not declared in this scope
btree.cpp:1218: error: expected ‘;’ before ‘frequency’
btree.cpp:1220: error: ‘LARGE_INTEGER’ was not declared in this scope
btree.cpp:1220: error: expected primary-expression before ‘)’ token
btree.cpp:1220: error: ‘frequency’ was not declared in this scope
btree.cpp:1220: error: ‘QueryPerformanceFrequency’ was not declared in this scope
btree.cpp:1262: error: expected primary-expression before ‘)’ token
btree.cpp:1262: error: ‘start’ was not declared in this scope
btree.cpp:1262: error: ‘QueryPerformanceCounter’ was not declared in this scope
btree.cpp:1264: error: name lookup of ‘i’ changed for ISO ‘for’ scoping
btree.cpp:1264: note: (if you use ‘-fpermissive’ G++ will accept your code)
btree.cpp:1304: error: expected primary-expression before ‘)’ token
btree.cpp:1304: error: ‘end’ was not declared in this scope
btree.cpp:1306: error: ‘total’ was not declared in this scope
btree.cpp:1316: error: ‘getchar’ was not declared in this scope
내가 처음으로 느낀 것은 아마도 윈도우 일 _TCHAR, _int64 및 LARGE_INTEGER 불리는 이러한 변수 유형이 있다는 것입니다. g ++에서 작동 할 수 있도록 이들을 어떻게 변경할 수 있습니까?
또한 여기에 g ++로 변환 할 수있는 항목이 있으면 도움이 될 것입니다.
는 여기에서 코드를 가지고 : http://touc.org/btree.html
이미 windows.h를 제거했지만 이러한 문제는 해결되지 않았습니다. – neuromancer