Using gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	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!



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux