Alright I get this weird error when trying compile my C code ( not to be mistaken for C++ ) and I get this error.
Code:
root@Lavyethen mine # gcc C3ST1.C
/tmp/cca9lk7P.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
But then when I do g++ it works...
Code:
root@Lavyethen mine # g++ C3ST1.C
root@Lavyethen mine #
It made the executable and everything what is up with this?
Here is the code on that file if that helps... (simple simple program)
Code:
/* Filename: C3ST2.C
Compute sales tax and display it with an appropriate message */
#include <stdio.h>
int main()
{
float sale, tax;
float tax_rate = .08; /* Sales tax percentage */
/* Determine the amount of the sale */
sale = 22.54;
/* Compute the sales tax */
tax = sale * tax_rate;
/* Print the results */
printf("The sales tax is:");
printf("%f", tax);
return 0;
}