How to see the contents of a library? - Unix

This is a discussion on How to see the contents of a library? - Unix ; Hello: I have a static library that was produced in Windows, and I would like to take a look at it in my Linux server. This is what I have so far: % ar tv myLibrary.lib rw-rw-rw- 100666/100666 601939 May ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: How to see the contents of a library?

  1. How to see the contents of a library?


    Hello:

    I have a static library that was produced in Windows, and I would like
    to take a look at it in my Linux server. This is what I have so far:

    % ar tv myLibrary.lib
    rw-rw-rw- 100666/100666 601939 May 25 17:02 2008 ../build/lib/release/
    settingsloader.obj
    [...] followed by several similar lines.

    What I would like to see is the contents (functions) of
    'settingsloader'. Is 'ar' the tool to use? Should I use 'nm' instead?

    The 'ar' man page says something about a full path. I am guessing the
    if the above were a U*ix library, it would lokk like this:

    % ar tv myLibrary.a
    rw-r--r-- 100666/100666 601939 May 25 17:02 2008 settingsloader.obj
    [...] followed by several similar lines.

    Correct?

    TIA,

    -RFH


  2. Re: How to see the contents of a library?

    Ramon F Herrera writes:

    > Hello:
    >
    > I have a static library that was produced in Windows, and I would like
    > to take a look at it in my Linux server. This is what I have so far:
    >
    > % ar tv myLibrary.lib
    > rw-rw-rw- 100666/100666 601939 May 25 17:02 2008 ../build/lib/release/
    > settingsloader.obj
    > [...] followed by several similar lines.
    >
    > What I would like to see is the contents (functions) of
    > 'settingsloader'. Is 'ar' the tool to use? Should I use 'nm' instead?


    Why don't you try it?

    --
    Måns Rullgård
    mans@mansr.com

+ Reply to Thread