From: "Chris Wilkinson" Newsgroups: comp.os.msdos.djgpp Subject: Re: Link errors with Debug switch on Date: Thu, 14 Jun 2001 12:42:52 -0400 Organization: University of Maryland College Park Lines: 18 Message-ID: <9gapii$kg6$1@hecate.umd.edu> References: NNTP-Posting-Host: enme-90.umd.edu X-Trace: hecate.umd.edu 992536978 20998 129.2.62.90 (14 Jun 2001 16:42:58 GMT) X-Complaints-To: abuse AT wam DOT umd DOT edu NNTP-Posting-Date: 14 Jun 2001 16:42:58 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" wrote in message news:Pine DOT SUN DOT 3 DOT 91 DOT 1010614110108 DOT 972M-100000 AT is... > > On Wed, 13 Jun 2001, Chris Wilkinson wrote: > > > When I link some objects with the debug (-g) switch on, then gcc reports > > some undefined references found and the link fails. If the debug switch is > > off then no errors are given and the final .exe is created. > > Please post the exact command line you used and the error messages > printed by the linker when you use -g. I should also mention that it compiles and links OK in MS VC++6 without error. The default is to preserve debug info.