I'm just wondering on what happened when the compiler throws me this error...
Code:
/tmp/ccsPx8ng.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
does anybody know? I'm using Fedora, shouldn't matter, but anyways, here's the test.C that I made and tried to compile:
Code:
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 int main() {
5 int n;
6 printf("How many rows do you want to show: ");
7 scanf("%d", &n);
8 for (int i = 0; i < n; i++) {
9 for (int j = n; j >= 0; j++) {
10 printf(" ");
11 }
12 printf("\n");
13 for (int j = 0; j < i; j++) {
14 printf("%d", j+1);
15 }
16 }
17 }