camerong
February 3rd, 2007, 08:08 PM
hey.
so i wrote a helloworld program just to start, and used g++ to compile it using:
g++ helloworld.cpp -o helloworld
and in helloworld.cpp i had this:
#include <iostream>
using namespace std;
int main()
{
cout << "HEY, you, I'm alive! Oh, and Hello World!" << endl;
cin.get();
return 0;
}
so then it flawlessly compiled, (no errors) but i cant run it! I double click on the program that it built and it just doesnt do anything. nothing opens, pops up, or anything!
i know this must be a very stupid question, but please help me. thanks in advance.
cameron
EDIT: and another quick question.. am i going to compile by command line and then run it manually every time i want to test something? in windows i can just hit F5 or whatnot and it compiles and runs.. is there any IDE's that will do that? I am using anjuta and just started programming on ubuntu
so i wrote a helloworld program just to start, and used g++ to compile it using:
g++ helloworld.cpp -o helloworld
and in helloworld.cpp i had this:
#include <iostream>
using namespace std;
int main()
{
cout << "HEY, you, I'm alive! Oh, and Hello World!" << endl;
cin.get();
return 0;
}
so then it flawlessly compiled, (no errors) but i cant run it! I double click on the program that it built and it just doesnt do anything. nothing opens, pops up, or anything!
i know this must be a very stupid question, but please help me. thanks in advance.
cameron
EDIT: and another quick question.. am i going to compile by command line and then run it manually every time i want to test something? in windows i can just hit F5 or whatnot and it compiles and runs.. is there any IDE's that will do that? I am using anjuta and just started programming on ubuntu