This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

why error when compiling ?


I used the GCC to complie the source file which used the x11,
but it said that undefined reference error when ld run.

the source file is from http://www.gnu.org/software/guile/docs/guile-ortoise2.html

and I used the instrucion:
gcc x.cpp -o file.exe -I/usr/X11R6/include -L/usr/X11R6/lib -lX11
but the compiler tell me that :

/cygdrive/c/Temp/ccWwBmed.o(.eh_frame+0x11):x.cpp: undefined reference to `___gxx_personality_v0'
collect2: ld returned 1 exit status

What's the problem and how can I to solve it ?



_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/lccn/

--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]