By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,305 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,305 IT Pros & Developers. It's quick & easy.

How to make a library

P: n/a
Hello I have a question, if I have several .o files.
How can I combine those libraries together and make a library?

Thank you very much!

Dec 13 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

<po***********@gmail.com> wrote
Hello I have a question, if I have several .o files.
How can I combine those libraries together and make a library?

Thank you very much!

It's platform specific.
If you are on UNIX, look up the gcc options.
If you are on Windows, look up the "create new project" options for the
Microsoft compiler.
Dec 13 '05 #2

P: n/a
po***********@gmail.com a écrit :
Hello I have a question, if I have several .o files.
How can I combine those libraries together and make a library?

Not a C-language question.

<OT>
Using a librarian. It's a utility that comes with your development
environment. (with GCC, it's called 'ar', meaning 'Archive').
</>

--
A+

Emmanuel Delahaye
Dec 13 '05 #3

P: n/a
po***********@gmail.com wrote:

Hello I have a question, if I have several .o files.
How can I combine those libraries together and make a library?


This is outside of C's realm, and it varies based on O/S and compiler/linker
being used.

<OT>
Given your use of ".o" makes me think you're on a Unix-type system, so you
can probably get your answer with the command "man ar".

If you need more help, you'll need to ask in a group that supports your
particular O/S and/or compiler/linker.
</OT>

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>

Dec 13 '05 #4

P: n/a
On Tue, 13 Dec 2005 12:21:55 -0800, poison.summer wrote:
Hello I have a question, if I have several .o files.
How can I combine those libraries together and make a library?

Thank you very much!


First off, this is off topic in this newsgroup, as you could have read in
the FAQ.

Second, how to make a library, depends on your OS and toolchain.

So:
1. Read the documentation supplied with your toolchain (RTFM, for short).
2. If you have questions after that, find a newsgroup which is pertinent
to your OS/toolchain.
3. Provide some more details, since crystall balls are in short supply.

Regards,

Kleuske.
Dec 13 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.