This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Using gcc
- From: "jjwdeck at juno dot com" <jjwdeck at juno dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 24 Dec 2005 19:38:26 GMT
- Subject: Using gcc
It has been a long time since I compiled anything on Linux. When I attempted to compile the following program with gcc (ver 3.3.4-13 on a Debian?s Sarge). It resulted in the error below.
Program:
// test compile
#include <stdio.h>
int main(void) {
printf("Hello World\n") ;
}
Compiler/Linker error:
/tmp/cc0Ke0PP.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
Checking the documentation for a version of gcc close to this one gave me now clue as to how to resolve the linker error. I ended up searching /usr/lib for __gxx_personality_v0 to find libstdc++.a which so happened to define the reference. Where do I find documentation that will tell me how to get started doing a compile in this situation? Also what is this 'personality' type of name the linker needs?
Sincerely,
jjwdeck
___________________________________________________________________
Try Juno Platinum for Free! Then, only $9.95/month!
Unlimited Internet Access with 250MB of Email Storage.
Visit http://www.juno.com/value to sign up today!