1

現在、いくつかの単純な IO を実行しようとしていますが、いくつかのメソッドが解決されていません。

#include <iostream>
#include <fstream>

std::string filename = "\random\location\blah";
std::ifstream test;  // is defined
test.open(filename);  //all others not resolvable
bool doesntwork = test.is_open();
bool alsodoesnt = test.good();
test.close();

現在、Mingw-w64 を使用しています。MinGW\lib\gcc\x86_64-w64-mingw32\4.7.2\include\c++\fstream をチェックインしましたが、basic_ifstream などのメンバー用に存在します。

(まとめ忘れてすみません)

c:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/_mingw_secapi.h:47:8: error: expected unqualified-id before string constant
c:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/vadefs.h:12:32: error: expected '}' before end of line
c:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/vadefs.h:12:32: error: expected unqualified-id before end of line
c:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/vadefs.h:12:32: error: expected declaration before end of line

エラー 1:

#ifdef __cplusplus
extern "C++" {   // the error location, not sure what to do
template <bool __test, typename __dsttype>
 struct __if_array;
template <typename __dsttype>
struct __if_array <true, __dsttype> {
typedef __dsttype __type;
};
}
#endif /*__cplusplus*/

エラー 2-4

#ifdef __cplusplus
extern "C" {  //not sure what they wanted here
#endif
4

0 に答える 0