X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: how can i search a specific symbol in static library ? Date: Wed, 26 Jul 2006 12:17:31 +0100 Message-ID: <013101c6b0a5$168587a0$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 On 26 July 2006 02:21, ?? wrote: > there are many static library files in lib directory, when i was > reported a error: "undefined reference to XXXXX" > how could i know which static library file(.a file) should i append to > compile path by parameter > L & l > is there a convenient way to search a specific symbol in a directory? The 'nm' command from binutils can dump all the symbols in a library. Try nm -A /usr/lib/*.a | grep 'XXXXX' to get started. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/