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
ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield
$42.00
***NEW*** BCM RX67Q Gaming Motherboard | Intel Q67 2nd/3rd Gen. | LGA1155 | DDR3
$29.77
Micro ATX Desktop Motherboard ASUS H110M-C LGA 1151
$31.95
Asrock Z390 Phantom Gaming 4S/AC Wifi 8th/9th Gen Intel 1151 Motherboard Bulk
$47.39
ASUS Prime Z390-A LGA 1151 Intel Z390 SATA USB 3.1 ATX Motherboard NO I/O
$99.00
MSI B450M PRO-VDH MAX AM4 AMD B450 USB3.2 Micro-ATX Motherboard
$67.99
X99 LGA 2011-v3 MR9D Motherboard 8*DDR4 RAM USB 3.0 SATA3.0 M.2 for E5 V3 V4 CPU
$79.99
MSI A320M-A PRO AM4 AMD A320 USB3.2 Gen1 Micro-ATX Motherboard
$46.99
BTC-S37 Mining Motherboard Kit /w SSD & Ram Preinstalled
$59.99
GIGABYTE MB10-Datto Motherboard Xeon D-1521- SR2DF 2.40 GHz- Open Box
$121.50