linking C libraries

Y

Yi

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
 
M

Michael Mair

Yi said:
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?

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,155
Messages
2,570,871
Members
47,401
Latest member
CliffGrime

Latest Threads

Top