Oct 13, 2015 at 10:35pm
two mistakes :
- c++ is case sensitive -> Sum.h not sum.h
- add in the header is add in the source file , not suma
Oct 13, 2015 at 10:36pm
gcc main.c -lsum
(That's a lower case 'L', not an upper case 'i'.)
Last edited on Oct 13, 2015 at 10:37pm
Oct 13, 2015 at 10:38pm
1 2 3 4 5 6
|
#include "Sum.h"
int add(int n1, int n2) // not int suma(int n1, int n2)
{
return n1 + n2;
}
|
Last edited on Oct 13, 2015 at 10:39pm