delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/02/23/19:40:03

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Richard Stanton" <stanton AT Haas DOT Berkeley DOT EDU>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: gcc - no messages re unresolved symbols
Date: Wed, 23 Feb 2000 16:46:55 -0800
Message-ID: <000a01bf7e60$a5f2dba0$524b2080@berkeley.edu>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
In-Reply-To: <37E16BF0.5CD259F5@jhuapl.edu>

I'm having an odd problem with gcc (cygwin version 2.95) on my NT machine.
If I compile/link a program that has some unresolved symbols, the linker
doesn't tell me about them, which makes tracking them down more than a
little hard...

For example, here's what happens when I compile a program that has a missing
main():

[c:\miscprog]gcc -o amput amput.c
collect2: ld returned 1 exit status

For comparison, here's what happens when I do the same thing on a unix
(SunOS 5.6) machine:

socrates% gcc -o ttt amput.c -lm
Undefined                       first referenced
 symbol                             in file
main
/usr/local/egcs-1.1.2/lib/gcc-lib/sparc-su
solaris2.6/egcs-2.91.66/crt1.o
ld: fatal: Symbol referencing errors. No output written to ttt
collect2: ld returned 1 exit status
socrates%

Any idea what's wrong? I'm pretty sure this used to work at one point.

Thanks a lot for any suggestions.

Richard Stanton


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019