Hi!
I was wondering if you ever did resolve this problem because I'm getting the same error message : (
Thanx!
I'm tryng some C exercises in my 3.8.2 knpx, and the follow is an example:
When I try to compile it with "gcc namefile.c" I have the follow error message:/* 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);
}
Any suggest? Thanks!/tmp/cc0KOUWj.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
Hi!
I was wondering if you ever did resolve this problem because I'm getting the same error message : (
Thanx!
I can't figure out what appened at the time of this post. I've just tried it right now and it works!!!
I've reinstalled knoppix since that time and maybe there was some strange/wrong settings...
Hi!
I used the command g++ instead of gcc and everything worked! I'm very new to Linux so I'm just trying things out, seeing what happens basically. Thank you for your help
You know, you never mentioned in your first post that you had "installed" Knoppix. Yes, this is the hddinstall forum, but it serves a few others uses too and people here are not always the greatest about using the best forum. You might have received better response if 1) you had spelled out that this was a hard disk "install" and 2) you had also tested the same thing booting from a CD or DVD and told us the result that way too.Originally Posted by maxIT
Sorry HK about that.
I was thinking that posting something in the "Hdd Install...." forum implied by itself that I was talking about an HDinstallation
Intel Core i7-7700 3.60GHz Quad-Core CPU
$38.87
AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads - 5.60 GHz Max Boo
$349.99
AMD Ryzen 5 5600X 6-core 12-Thread Desktop Processor AVZ9
$104.99
Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc...
$306.99
Intel Core 2 Quad Processor Q9550 2.83GHz 1333MHz (SLB8V)
$12.50
AMD Ryzen 5 7600x Processor (5.3 GHz, 6 Cores, LGA 1718/Socket AM5) NEW OEM Tray
$169.98
Intel Core i3-10105 SRH3P 3.7GHz Quad Core LGA 1200 CPU Processor
$42.95
Intel - Core i5-13600K 13th Gen 14 cores 6 P-cores + 8 E-cores 24M Cache, 3.5...
$314.99
Intel Core i5-13600K - 13th Gen Raptor Lake 14-Core (6P+8E) 3.5GHz LGA CPU
$259.99
(Lot of 9) Intel Core i7-4790 3.60GHz LGA1150 SR1QF Processors #27
$264.99