Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: swamp-dog AT ntlworld DOT com (Guy Harrison) To: Subject: Re: Problems linking program Date: Sun, 21 Apr 2002 20:27:37 GMT Message-ID: <3cc411d5.271181939@smtp.ntlworld.com> References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020418131625 DOT 01b09d28 AT mail DOT prefres DOT com> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020419152307 DOT 02585d38 AT mail DOT prefres DOT com> In-Reply-To: <5.1.0.14.2.20020419152307.02585d38@mail.prefres.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g3LKSUR16134 On Fri, 19 Apr 2002 15:25:27 -0500, "Matt Minnis" wrote: >Larry, > >I did an nm -C and collected the output to a text file. >I found references to these functions in libc, libg, and libcygwin. >I am not quite sure what to look for now. >Can you explain what I need to be looking for? In the case of functions, big 'T's ;-) Loosely: Definitions. One thereof. Multiple definitions means you have to make an executive decision about which lib was intended, and no definition implies "go download missing package" or "bad config wrong machine". nm -A --defined-only `find /lib -name '*.a'` | grep umoddi3 [snip path]/libgcc.a:_umoddi3.o:00000000 b .bss /libgcc.a:_umoddi3.o:00000000 d .data /libgcc.a:_umoddi3.o:00000000 ? .stab /libgcc.a:_umoddi3.o:00000000 ? .stabstr /libgcc.a:_umoddi3.o:00000000 t .text /libgcc.a:_umoddi3.o:00000000 t ___clz_tab /libgcc.a:_umoddi3.o:00000000 t ___gnu_compiled_c /libgcc.a:_umoddi3.o:00000100 T ___umoddi3 /libgcc.a:_umoddi3.o:00000000 t gcc2_compiled ...implies "-lgcc" is missing from the link line. Now you're certainly on your own because that's automatically done via "specs". [snip] -- swamp-dog AT ntlworld DOT com -- 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/