omlouvám se že otravuju ale zkoušel jsem hned ten první kód v první lekci a nechce mi fungovat :-(
#include // 1
using namespace std; // 2
int main() // 3
{ // 4
cout << "Ahoj svete!" << endl; // 5
return 0; // 6
}
Kompilátor wxDev-C++ píše toto:
Compilátor: Default GCC compiler
Spouští se g++.exe...
g++.exe "C:\Program Files\Dev-Cpp\Beze jména 1.cpp" -o "C:\Program Files\Dev-Cpp\Beze jména 1.exe" -I"C:\Program Files\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Program Files\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Program Files\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Program Files\Dev-Cpp\include\c++\3.4.2" -I"C:\Program Files\Dev-Cpp\include" -I"C:\Program Files\Dev-Cpp\" -I"C:\Program Files\Dev-Cpp\include\common\wx\msw" -I"C:\Program Files\Dev-Cpp\include\common\wx\generic" -I"C:\Program Files\Dev-Cpp\include\common\wx\fl" -I"C:\Program Files\Dev-Cpp\include\common\wx\gizmos" -I"C:\Program Files\Dev-Cpp\include\common\wx\html" -I"C:\Program Files\Dev-Cpp\include\common\wx\mmedia" -I"C:\Program Files\Dev-Cpp\include\common\wx\net" -I"C:\Program Files\Dev-Cpp\include\common\wx\ogl" -I"C:\Program Files\Dev-Cpp\include\common\wx\plot" -I"C:\Program Files\Dev-Cpp\include\common\wx\protocol" -I"C:\Program Files\Dev-Cpp\include\common\wx\stc" -I"C:\Program Files\Dev-Cpp\include\common\wx\svg" -I"C:\Program Files\Dev-Cpp\include\common\wx\xml" -I"C:\Program Files\Dev-Cpp\include\common\wx\xrc" -I"C:\Program Files\Dev-Cpp\include\common\wx" -I"C:\Program Files\Dev-Cpp\include\common" -L"C:\Program Files\Dev-Cpp\Lib"
C:\Program Files\Dev-Cpp\Beze jména 1.cpp:1:17: #include expects "FILENAME" or <FILENAME>
C:\Program Files\Dev-Cpp\Beze jména 1.cpp: In function `int main()':
C:\Program Files\Dev-Cpp\Beze jména 1.cpp:5: error: `cout' undeclared (first use this function)
C:\Program Files\Dev-Cpp\Beze jména 1.cpp:5: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:\Program Files\Dev-Cpp\Beze jména 1.cpp:5: error: `endl' undeclared (first use this function)
g++.exe: Files\Dev-Cpp\include\common\wx\msw -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\generic -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\fl -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\gizmos -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\html -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\mmedia -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\net -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\ogl -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\plot -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\protocol -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\stc -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\svg -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\xml -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx\xrc -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common\wx -IC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\include\common -LC:\Program: Invalid argument
g++.exe: Files\Dev-Cpp\Lib : No such file or directory
Provádění ukončeno