Including header files from a sibling folder

My current folder structure is as follows

<project_base>
|
|--<build>
| |
| |--<cmake>{CMake related files}
| |
| |--<bin>{Executables}
|
|--<lib>{Header files for function prototypes etc}
|
|--<src>{Source files}

When importing a header file, would I use

#import "someHeaderFile.h"

or

#import <someHeaderFile.h>
First off, you would use #include, not #import. #import is a Microsoft extension for importing type libraries.
https://msdn.microsoft.com/en-us/library/8etzzkb6.aspx

Quoted file names are used for user header files. <filename> is used for header files that are released with the compiler.

Since your header files are not in your <src> directory, you will have to tell the compiler to look in the <lib> directory for your header files.
https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html#Include-Syntax (when to use <> and "")
https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html (different behaviour with <>)

> <lib>{Header files for function prototypes etc}
I would expect <lib> to hold libraries, *.so or *.a to be link to your program.
Topic archived. No new replies allowed.