Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,258 Programmers. There are 2,029 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

What exactly is a library?

 
Reply to this topicStart new topic

What exactly is a library?

ljfox4
post 13 Apr, 2008 - 07:23 PM
Post #1


New D.I.C Head

*
Joined: 10 Feb, 2007
Posts: 27



I have wondered for a time now, what is a library deep down? I mean to say, is it source code? (Highly doubt that.) Is it object code? (More plausible). If someone could answer I would greatly appreciate it.

Thank you,

--ljfox4
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


no2pencil
post 13 Apr, 2008 - 07:46 PM
Post #2


DIC K-mart

Group Icon
Joined: 10 May, 2007
Posts: 3,321

QUOTE(ljfox4 @ 13 Apr, 2008 - 10:23 PM) *

I have wondered for a time now, what is a library deep down? I mean to say, is it source code? (Highly doubt that.) Is it object code? (More plausible).

If by library, you mean a dll, dynamically linked library, this is my understanding.

When you compile a program to be execute, it is a binary executable program. All programs must be loaded into memory to execute. That is the standard for computing, regardless of the Operating System. A library is a segment of code that can be shared. When it is loaded into memory, it is available to other programs that can link to it, & they can make calls to functions that exist in that library.

If this isn't the answer that you are looking for, I'm sure someone else that understands it better will explain it correctly, & more thoroughly.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

ljfox4
post 13 Apr, 2008 - 08:01 PM
Post #3


New D.I.C Head

*
Joined: 10 Feb, 2007
Posts: 27

That's not quite what I needed, sorry. I mean to ask, when you type, for example:

CODE




What is SDL? Is it object code, ready to be linked? Is it source to be compiled? I'd assume it is one of those, since the compiler compiles and links.

This post has been edited by ljfox4: 13 Apr, 2008 - 08:26 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Mikhail
post 13 Apr, 2008 - 10:04 PM
Post #4


D.I.C Addict

Group Icon
Joined: 26 Oct, 2007
Posts: 619

Do you mean Simple DirectMedia Layer? If so then:

QUOTE
SDL itself is very simple; it merely acts as a thin, cross-platform wrapper, providing support for 2D pixel operations, sound, file access, event handling, timing, threading, and more. It is often used to complement OpenGL by setting up the graphical output and providing mouse and keyboard input, which are beyond the scope of OpenGL.
this was taken from wikipedia: SDL
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

1lacca
post 14 Apr, 2008 - 01:41 AM
Post #5


code.rascal

Group Icon
Joined: 11 Aug, 2005
Posts: 3,192

A library is a collection of functions.
It can be distributed in any of the forms:
-source code
-object code
-compiled code
Usually you can use a library in two ways:
- compiled into your project
- loaded dynamically at runtime
They both have their pros and cons, I think it is quite straightforward (search for dll hell, etc.).
User is online!Profile CardPM
Go to the top of the page
+Quote Post

ljfox4
post 14 Apr, 2008 - 12:29 PM
Post #6


New D.I.C Head

*
Joined: 10 Feb, 2007
Posts: 27

Thank you all for your help. I understand a lot better now.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 09:48AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month