opened
danimtb
username_0
In this example: http://docs.biicode.com/c++/examples/google-test-tutorial.html

When creating main function in math_ext.cpp like this:

``#include "math_ext.h"
#include "iostream"
 
int Factorial (int num)
{
  if (!num)return 1;
  if (num<0)return -1;
  return num*Factorial(num-1);
}

int main(int argc, char **argv)
{
	std::cout<<Factorial(7)<<std::endl;
}``

and doing **bii test** it repoorts:

multiple definition of `main'
bii test conflict with mains 
issue
created
udit043
username_1
It runs fine ! I don't get any error , code runs perfectly.
comment
created
Manu343726
username_2
Could you please post the complete bii output here? Also note `include "iostream"` in your example, system headers (STL ones included) should use `<>`. I think using `""` for these invokes implementation defined behavior.
comment