I have a sample program in a file called "helloworld.cpp":
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
cout<<"Hello World!";
return 0;
}
I am trying to write a makefile for this as follows:
all: g++ helloworld.cpp -o helloworld
Right now I am on windows and couldn't test this. However, when I submit this to one of the site (www.gild.com) it is telling me that submission has failed due to build error. Can somebody point out what is wrong here?
You have the action to be run on the part of the line where the dependency goes. Try this:
Make sure that's one tab, not spaces in any quantity.