when i type in the following code taken from a c++ book:
It returns the error:
duplicate symbol _main in /users/alexdavey/documents/test/build/test.build
command /developer/usr/bin/g++-4.0 failed with exit code 1
why?
Code:
#include <iostream>
int main()
{
std::cout << "hello world!" << std::endl;
return 0;
}
It returns the error:
duplicate symbol _main in /users/alexdavey/documents/test/build/test.build
command /developer/usr/bin/g++-4.0 failed with exit code 1
why?