0
だから、イムランニングのCygwinとのEclipse C/C++。のEclipse C/C++の問題+ Cygwinの(すべてに文句を言う)
私は実行して、スムーズにコンパイルすることができます:
マイTEST.CPPは次のとおりです。
#include <iostream>
using namespace std;
int main() {
cout << "This is a demonstration! \n";
sleep(10);
return 0;
}
を私は正常にこのメイクファイルをビルドすることができます。
**** Build of configuration Release for project HelloWorld ****
make all
Building file: ../test.cpp
Invoking: Cross G++ Compiler
g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"test.d" -MT"test.d" -o "test.o" "../test.cpp"
cygwin warning:
MS-DOS style path detected: C:\Users\David\cworkspace\HelloWorld\Release
Preferred POSIX equivalent is: /cygdrive/c/Users/David/cworkspace/HelloWorld/Release
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Finished building: ../test.cpp
Building target: HelloWorld
Invoking: Cross G++ Linker
g++ -o "HelloWorld" ./test.o
Finished building target: HelloWorld
**** Build Finished ****
その後私は、HelloWorldを取得します。 exe私は正常に実行することができます。
私の問題は、日食のすべてに文句を言う、です!これは、iveに多くのエラーがあると言います。
Description Resource Path Location Type
Function 'sleep' could not be resolved test.cpp /HelloWorld line 6 Semantic Error
Symbol 'cout' could not be resolved test.cpp /HelloWorld line 5 Semantic Error
Symbol 'std' could not be resolved test.cpp /HelloWorld line 2 Semantic Error
これは、コードを読むと明らかにそうではありません。私が試してみました
:私は他のウェブサイト上で見つけたヒントでした
Index->Update with modified files
Index->Freshen all files
Index->Create parser log file
。
どのように私はこの問題に取り組む必要があります!
を試してみてください。 –
はい、そうかもしれません。それでも。私はまだ私が得るべきではない他のエラーを取得します。しかし、情報のおかげで。 – netigger
Eclipseはヘッダーを探すディレクトリを知っていますか? Cygwinでは '/ usr/include'です。 – tom