Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/24/09 09:36
Read: times


 
#161713 - Not exactly
Responding to: ???'s previous message
Per Westermark said:
A library just contains the implementation of functions.

True.

You always have to use both the library, and one or more header files that declares what variables and functions the library export.

You don't strictly have to use header files: you could manually type the required function prototypes, extern data declarations, etc yourself into your source files. But that would not be a good thing to do - there would be a high risk of errors, and it would be a maintenance nightmare!


List of 10 messages in thread
TopicAuthorDate
How to use Libraries, are prototypes reqd?            01/01/70 00:00      
   lib + header file(s) goes hand-in-hand            01/01/70 00:00      
      put prototypes in header?            01/01/70 00:00      
         Should already be in a header file            01/01/70 00:00      
      Not exactly            01/01/70 00:00      
   Oh yes you do!            01/01/70 00:00      
      Why do warnings come?            01/01/70 00:00      
         Normally many small source files            01/01/70 00:00      
         so the solution is...            01/01/70 00:00      
            most likely            01/01/70 00:00      

Back to Subject List