Results 1 to 2 of 2
Hi all!! I am working at trying to learn C++ so I installed anjuta ide but I am having some difficulties with it. I am trying to write a simple ...
- 12-12-2007 #1Just Joined!
- Join Date
- Aug 2007
- Posts
- 4
help with hello world program
Hi all!! I am working at trying to learn C++ so I installed anjuta ide but I am having some difficulties with it. I am trying to write a simple hello world file and everything seems to work fine/ when i build and compile it says successful. My ownly prob right now is that when I compile the program it says successful but nothing pops up and says hello world.....can someone please tell me what i am doing wrong. Thanks!! Here what it says when I compile and the code i used for the program.
#include <iostream>
int main()
{
std::cout <<"helloworld\n";
return 0;
}
when I compile it says this
compiling file: vbf.cc...
g++ -c "vbf.cc" -o "vbf.o"
completed.....successful
total time taken 0 seconds
thanks again for any help
- 12-12-2007 #2Linux Newbie
- Join Date
- Aug 2004
- Posts
- 220
It compiled just fine. The program it compiled to is vbf.o
I don't know where anjuta stores its output files (you could do a search for it)
from that directory run (in a console)
./vbf.o
and you'll get this:
helloworld
good luck!
Alternatively, you could skip anjuta like I did, using the console:
g++ -o vbf.o vbf.cc


Reply With Quote