linking C libraries

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yi

    #1

    linking C libraries

    We are trying to make a library of our own and are getting lots of
    missing symbol errors. The missing symbols are functions from UCSC
    libraries that are included from our library. The library compiles
    fine, and the ar command succeeds. The problem is when you include
    the library in a program and try to use one of its functions. Does
    this sound like a common error?
    Any hints where to look? makefile? .h file? .c file?

    Thanks a lot
  • Michael Mair

    #2
    Re: linking C libraries

    Yi wrote:
    [color=blue]
    > We are trying to make a library of our own and are getting lots of
    > missing symbol errors. The missing symbols are functions from UCSC
    > libraries that are included from our library. The library compiles
    > fine, and the ar command succeeds. The problem is when you include
    > the library in a program and try to use one of its functions. Does
    > this sound like a common error?
    > Any hints where to look? makefile? .h file? .c file?[/color]

    This is not topical here.
    Please ask in a newsgroup where your compiler/linker is on topic.
    <OT>
    Your mentioning of ar suggests a Unix-like environment, so I guess
    you compile and link using gcc. If that is the case, ask again in
    gnu.gcc.help. Note that you have to link the libraries your library
    depends on, too, and that the order of linking also plays a role.
    </OT>
    Apart from that: Without your posting the ar, compiler and linker call
    and the errors/warnings, only very few people will be able and/or
    willing to help you.


    Cheers
    Michael
    --
    E-Mail: Mine is an /at/ gmx /dot/ de address.

    Comment

    Working...