I'm tryng some C exercises in my 3.8.2 knpx, and the follow is an example:
/* Program to calculate the product of two numbers. */
#include <stdio.h>

int a,b,c;

int product(int x, int y);

main()
{
/* Input the first number */
printf("Enter a number betwen 1 and 100: ");
scanf("%d", &a);

/* Input the second number */
printf("Enter another number betwen 1 and 100: ");
scanf("%d", &b);

/* Calculate and display the product */
c = product(a, b);
printf ("%d times %d = %d\n", a, b, c);

return 0;
}

/* Function returns the product of its two arguments */
int product(int x, int y)
{
return (x * y);
}
When I try to compile it with "gcc namefile.c" I have the follow error message:
/tmp/cc0KOUWj.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
Any suggest? Thanks!