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:17
Read: times


 
#161710 - lib + header file(s) goes hand-in-hand
Responding to: ???'s previous message
A library just contains the implementation of functions.

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

This is similar to your inclusion of stdio.h, stdlib.h, string.h, ... to tell the compiler that it may make use of the variables/functions implemented in the standard C libraries.

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