I'm trying to use a c++ program that I made, which is a very simple integrator.
I think I installed everything that I need, such as Dev tools, Xcode, gcc4.0 and other stuff that I might have installed. Anyhow, when I compile my program, it says,
newtonc.cpp:1:19: error: iostream: No such file or directory
newtonc.cpp: In function 'int main()':
newtonc.cpp:31: error: 'cout' was not declared in this scope
newtonc.cpp:31: error: 'endl' was not declared in this scope
I think the problem is that I don't have iostream, which I heard to be installed when I install gcc. I'm pretty sure that I installed gcc, since when I type "which gcc" or "which gcc-4.0", it's saying "/usr/bin/gcc."
It's possible that I installed gcc wrong. I didn't use terminal to install it. instead, i double clicked something called "gcc-intel-bin.tar", and it seemed to install automatically.
I got think link, Installing GCC: Configuration - GNU Project - Free Software Foundation (FSF), and it's extremely difficult to find what I'm doing wrong or to follow what they are saying.
I'm really confused. It would be great if you could help me.
I think I installed everything that I need, such as Dev tools, Xcode, gcc4.0 and other stuff that I might have installed. Anyhow, when I compile my program, it says,
newtonc.cpp:1:19: error: iostream: No such file or directory
newtonc.cpp: In function 'int main()':
newtonc.cpp:31: error: 'cout' was not declared in this scope
newtonc.cpp:31: error: 'endl' was not declared in this scope
I think the problem is that I don't have iostream, which I heard to be installed when I install gcc. I'm pretty sure that I installed gcc, since when I type "which gcc" or "which gcc-4.0", it's saying "/usr/bin/gcc."
It's possible that I installed gcc wrong. I didn't use terminal to install it. instead, i double clicked something called "gcc-intel-bin.tar", and it seemed to install automatically.
I got think link, Installing GCC: Configuration - GNU Project - Free Software Foundation (FSF), and it's extremely difficult to find what I'm doing wrong or to follow what they are saying.
I'm really confused. It would be great if you could help me.