This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: how can i search a specific symbol in static library ?
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 26 Jul 2006 12:17:31 +0100
- Subject: RE: how can i search a specific symbol in static library ?
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/