Library out of date; rerun ranlib(1) (can't load from it)

Discussion in 'Programmer Help' started by tim lindner, Oct 5, 2004.

  1. tim lindner

    tim lindner Guest

    Me and a friend are working on a project together. He produces a .a
    library that I link to. Everytime I get a new .a file from him I get
    this error:

    ld: table of contents for archive: ../jzintv/src/libjzintv_common.a is
    out of date; rerun ranlib(1) (can't load from it)

    So I execute the command ranlib on the library and then everything
    working fine. The .a file work fine for him.

    Why do I need to do this?
    tim lindner, Oct 5, 2004
    1. Advertisements

  2. tim lindner

    Eric Albert Guest

    Because you need to re-run ranlib whenever the modification date of a .a
    file changes. It's annoying, but that's the way it works. If he's
    building it on his system, his build process is automatically running
    ranlib at the end of the build for him.

    Eric Albert, Oct 5, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.