Include headers in header file?
        Posted  
        
            by Mohit Deshpande
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Mohit Deshpande
        
        
        
        Published on 2010-04-20T23:22:50Z
        Indexed on 
            2010/04/20
            23:23 UTC
        
        
        Read the original article
        Hit count: 307
        
I have several libraries made by myself (a geometry library, a linked list library, etc). I want to make a header file to include them all in one lib.h. Could I do something like this:
#ifndef LIB_H_
#define LIB_H_
#include <stdio.h>
#include <stdlib.h>
#include <linkedlist.h>
#include <geometry.h>
....
#endif
Then I could just reference this one library and actually reference multiple libraries. Is this possible? If not, is there a way around it?
© Stack Overflow or respective owner