Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

tell me

Posted on 2001-06-13
6
Medium Priority
?
203 Views
Last Modified: 2010-04-02
diff between library & header files?
0
Comment
Question by:shoaib_adil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 2

Accepted Solution

by:
MadYugoslav earned 200 total points
ID: 6189705
Header files are source files with declarations of identifiers.
Library files are files with implementation (definition) of previously declared identifiers.
Identifiers are types (classes with attributes and methods), variables and functions.
0
 
LVL 5

Expert Comment

by:djbusychild
ID: 6189771
header files are included when you compile your code
library files are binary data that gets linked after your code is compiled.

often times an API or an SDK will release a compiled
library and an accompanying header file. This way you can refer to functions that have their prototypes defined in the header file.
0
 
LVL 30

Expert Comment

by:Axter
ID: 6190476
While everyone can agree what header files are, the same can?t be said for library files.

In general, library files include header files.

In other words, header files have your declarations, and library files includes implementation and declaration.
The implementation can be precompiled code, fully compiled code, or code that has not been compiled.
Example of precompiled code would be *.lib, *.obj, *.o, and *.a files.
Example of compiled code would be (Win)*.DLL and (Unix)*.so files.

No matter what type of implementation code you?re using, you always need to use their associated header files in order to use the implementation code.

So the entire package is the library, and the header files are just one part of the library.

There are some exceptions to the above.  For example, you can have your implementation code in the header file.  In which case the header files would be the library as well as the header.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Expert Comment

by:scientist060700
ID: 6196866
Library is the collection of many headerfiles and many other useful files and information that you can call and include in your program.
header files are the files created that you may call in your programm to do specific operations although they are not required to call anymore you can do without header files.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6817343
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to accept "MadYugoslav" comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6833295
Per recommendation comment force/accepted by

Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question