public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* how to fix the error : Undefined symbol __gxx_personality_v0
@ 2002-09-24 21:46 wang jincheng
  0 siblings, 0 replies; only message in thread
From: wang jincheng @ 2002-09-24 21:46 UTC (permalink / raw)
  To: gcc

Hi,all:

i am first to program on SUN Solaris, and meet a difficulty.

when i make ,the error message is :

/bin/ksh ./libtool --mode=link g++  -g -O2   -o hello  main.o libhello.la    
g++ -g -O2 -o .libs/hello main.o  ./.libs/libhello.so -R/usr/local/lib
Undefined                       first referenced
 symbol                             in file
__gxx_personality_v0                main.o
ld: fatal: Symbol referencing errors. No output written to .libs/hello
collect2: ld returned 1 exit status
make[1]: *** [hello] Error 1

i finish the same job on CYGWIN,without problems. 

How to fix the problems?

Thanks.
JC Wang


following is my makefile.am and configure.in:
#makefile.am
lib_LTLIBRARIES  = libhello.la   
libhello_la_SOURCES     = hello.cpp
libhello_la_LDFLAGS     = -avoid-version

include_HEADERS         = hello.h 

bin_PROGRAMS            = hello test
hello_SOURCES           = main.cpp
hello_LDADD             = libhello.la   

test_SOURCES           = test.c


#configure.in
AC_INIT(hello,1.0)
AM_INIT_AUTOMAKE

AC_CONFIG_SRCDIR([hello.cpp])
AM_CONFIG_HEADER([config.h])

#CC=cl        
#CXX=cl
#CPPFLAGS=-TP
AC_SUBST(CXX)   
AC_SUBST(CPPFLAGS)   
AC_PROG_CXX
AC_PROG_CC  
AC_PROG_CPP
AC_PROG_RANLIB
AC_C_CONST

#AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL

AC_OUTPUT(Makefile)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-25  4:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-24 21:46 how to fix the error : Undefined symbol __gxx_personality_v0 wang jincheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).