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]

g++ link errors


Hi -

When I try to link a c++ file with g++, I get a bunch of link errors like:

g++ -o test db.o
/usr/lib/libstdc++.a(iostream.o)(.text+0xa):iostream.cc: undefined reference
to `__get_eh_context'
/usr/lib/libstdc++.a(iostream.o)(.text+0xd98):iostream.cc: undefined
reference to `__umoddi3'
/usr/lib/libstdc++.a(iostream.o)(.text+0xdaa):iostream.cc: undefined
reference to `__udivdi3'

I've tried adding various -l's to my link line but to no avail. This is
probably something simple, but I can't quite figure out what I'm missing.
Most confusing is this:

$ nm /lib/gcc-lib/i686-pc-cygwin/2.95.3-5/libgcc.a | grep udivdi3
_udivdi3.o:
00000100 T ___udivdi3

It seems to me like this should be linked against by default??

I'm running:

$ uname -a
CYGWIN_NT-5.0 LAPTOP 1.3.3(0.46/3/2) 2001-09-12 23:54 i686 unknown

Brian St. Pierre


St. Pierre, Brian.vcf

--
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]