PHP interesse |
|
ok, dat werkt, maar nu ik een gewoon cpp bestand zonder fouten compileer:
Plaatscode: 85991
werkt niet:
de error
user@A1-PC2:~/Documenten$ g++ source.cpp -o hello
source.cpp:3: fout: expected nested-name-specifier before ‘namespaces’
source.cpp:3: fout: ‘namespaces’ has not been declared
source.cpp:3: fout: expected `;' before ‘std’
source.cpp:3: fout: expected constructor, destructor, or type conversion before ‘;’ token
source.cpp: In function ‘int main()’:
source.cpp:6: fout: ‘cout’ was not declared in this scope
source.cpp:6: fout: ‘endl’ was not declared in this scope
source.cpp:7: fout: ‘cin’ was not declared in this scope
user@A1-PC2:~/Documenten$ g++ source.cpp -o hello source.cpp:3: fout: expected nested-name-specifier before ‘namespaces’ source.cpp:3: fout: ‘namespaces’ has not been declared source.cpp:3: fout: expected `;' before ‘std’ source.cpp:3: fout: expected constructor, destructor, or type conversion before ‘;’ token source.cpp: In function ‘int main()’: source.cpp:6: fout: ‘cout’ was not declared in this scope source.cpp:6: fout: ‘endl’ was not declared in this scope source.cpp:7: fout: ‘cin’ was not declared in this scope
wat nu?, t is toch een c++ compiler of niet dan?
|