私はちょうどminGWと共にCLionをダウンロードし、プロジェクトを作成しました。たくさんの困惑の後、サンプルHello Worldプログラムを実行するためのボタンを手に入れました。しかし、プログラムを実行しようとすると、私にこのエラーログを与える前に50%にコンパイルされていると言われます:https://justpaste.it/wm14CLionを実行しているときのエラーC++サンプルプログラム
これは非常に長く、約450行です。なぜこのエラーが出るのか分かりません...どんな助けでも大歓迎です! :)
エラーの最初の数行は次のとおりです。ここで
In file included from c:\mingw\include\wchar.h:208:0,
from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\cwchar:44,
from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\bits\postypes.h:40,
from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iosfwd:40,
from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ios:38,
from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\4.9.3\include\c++\iostream:39,
from C:\Users\Ole\Documents\programming\c++\testing\main.cpp:1:
c:\mingw\include\sys/stat.h:173:14: error: '_dev_t' does not name a type
struct _stat __struct_stat_defined(_off_t, time_t);
^
c:\mingw\include\sys/stat.h:173:14: error: '_ino_t' does not name a type
struct _stat __struct_stat_defined(_off_t, time_t);
^
c:\mingw\include\sys/stat.h:173:14: error: '_mode_t' does not name a type
struct _stat __struct_stat_defined(_off_t, time_t);
^
コードされています:
#include "iostream"
int main() {
std::cout << "Hello World!" << std::endl;
return 0;
}
私は、このようなhas not been declared using
またはis not a member of 'std'
またはdoes not name a type
などのエラーのリストが続くIn file included from
を開始しますエラーのリストで次のような繰り返しのパターンがあります問題をインクルードステートメントに分離することができました。インクルード(とcout)を削除してもうまくいきますが、インクルード(そしてcoutではなく)を追加すると同じエラーが出ます。
更新
私は単にminGW
を削除し、cygwin
をインストールすることによってこの問題を解決するために管理。
あなたのコードを質問に追加してください。 –
私はコードを追加しました。 – InzaneNova
私はさらに問題を絞り込むことができました:D – InzaneNova