Problème à la compilation.
Salut,
Je viens d'installer codeblocks sur vista,
et pour le tester j'ai mit le simple hello world:
Code:
1 2 3 4 5 6 7 8
| #include <iostream>
using namespace std;
int main(int argc, char **argv)
{
cout << "Hello World!" << endl;
return 0;
} |
mais quand je veux le lire (build and run), il trouve plein d'erreurs bizarres:
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| Compiling: testcpp.c
C:\Users\DaX\Desktop\test2\testcpp.c:1:20: iostream: No such file or directory
C:\Users\DaX\Desktop\test2\testcpp.c:2: error: syntax error before "namespace"
C:\Users\DaX\Desktop\test2\testcpp.c:2: warning: type defaults to `int' in declaration of `std'
C:\Users\DaX\Desktop\test2\testcpp.c:2: warning: data definition has no type or storage class
C:\Users\DaX\Desktop\test2\testcpp.c: In function `main':
C:\Users\DaX\Desktop\test2\testcpp.c:6: error: `cout' undeclared (first use in this function)
C:\Users\DaX\Desktop\test2\testcpp.c:6: error: (Each undeclared identifier is reported only once
C:\Users\DaX\Desktop\test2\testcpp.c:6: error: for each function it appears in.)
C:\Users\DaX\Desktop\test2\testcpp.c:6: error: `endl' undeclared (first use in this function)
Process terminated with status 1 (0 minutes, 0 seconds)
6 errors, 2 warnings |
d'où peut provenir le problème? MinGW, l'installation de codeblocks, vista?
merci d'avance.
Dax