delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <6D8664171C38D511B5AD0002B325CE664AC035@mail.cetaceannetworks.com> |
From: | "St. Pierre, Brian" <BStPierre AT Cetacean DOT com> |
To: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
Subject: | g++ link errors |
Date: | Fri, 2 Nov 2001 12:09:51 -0500 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2653.19) |
------_=_NextPart_000_01C163C1.2F066230 Content-Type: text/plain; charset="iso-8859-1" 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 ------_=_NextPart_000_01C163C1.2F066230 Content-Type: application/octet-stream; name="St. Pierre, Brian.vcf" Content-Disposition: attachment; filename="St. Pierre, Brian.vcf" BEGIN:VCARD VERSION:2.1 N:St. Pierre;Brian FN:St. Pierre, Brian ORG:Cetacean Networks;Switch Software TITLE:Senior SW Engineer TEL;WORK;VOICE:(603) 766-6144 ADR;WORK:;;110 Corporate Drive;Portsmouth;NH;03801;US LABEL;WORK;ENCODING=QUOTED-PRINTABLE:110 Corporate Drive=0D=0APortsmouth, NH 03801=0D=0AUS EMAIL;PREF;INTERNET:BStPierre AT Cetacean DOT com REV:20011022T171351Z END:VCARD ------_=_NextPart_000_01C163C1.2F066230 Content-Type: text/plain; charset=us-ascii -- 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/ ------_=_NextPart_000_01C163C1.2F066230--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |