vijesh758
February 2nd, 2010, 08:33 PM
i got this message while try to compile please help me
vijesh@computer:~$ sudo gedit myprogram.cpp
vijesh@computer:~$ g++ myprogram.cpp -o myprog
myprogram.cpp:1:21: error: iostream.h: No such file or directory
myprogram.cpp:2:18: error: conio.h: No such file or directory
myprogram.cpp:3: error: ‘::main’ must return ‘int’
myprogram.cpp: In function ‘int main()’:
myprogram.cpp:6: error: ‘clrscr’ was not declared in this scope
myprogram.cpp:7: error: ‘cout’ was not declared in this scope
myprogram.cpp:8: error: ‘cin’ was not declared in this scope
myprogram.cpp:10: error: ‘getch’ was not declared in this scope
vijesh@computer:~$ sudo gedit myprogram.cpp
vijesh@computer:~$ g++ myprogram.cpp -o myprog
myprogram.cpp:1:21: error: iostream.h: No such file or directory
myprogram.cpp:2:18: error: conio.h: No such file or directory
myprogram.cpp:3: error: ‘::main’ must return ‘int’
myprogram.cpp: In function ‘int main()’:
myprogram.cpp:6: error: ‘clrscr’ was not declared in this scope
myprogram.cpp:7: error: ‘cout’ was not declared in this scope
myprogram.cpp:8: error: ‘cin’ was not declared in this scope
myprogram.cpp:10: error: ‘getch’ was not declared in this scope