Page 1 of 1

Headers folder in project

Posted: Fri Dec 23, 2016 12:41 am
by mjay4
I'm very new to programming - having only done some primary tasks in Python and Java. The CodeLite FAQ seems to indicate that when I create a project, I should have a "Source" folder and a "Header" folder - but I see only a "src" folder, which I am assuming refers to the source folder. Is it okay to put all files, including headers, inside the source folder?

Thank you for any help.

Re: Headers folder in project

Posted: Fri Dec 23, 2016 6:33 am
by eranif
mjay4 wrote:Is it okay to put all files, including headers, inside the source folder?
Yes

Re: Headers folder in project

Posted: Fri Dec 30, 2016 3:19 am
by Gibbon1
One thing to note the workspace folders in codelite of 'virtual' they don't actually anything to do with how the files are laid out on disk. That said the compiler needs to be able to find the header files.

The three ways you can do this is

1. All the source and headers files in one directory.
2. Include the path like this #include "subfolder/header.h"
3. Under the project settings->compiler->Include Paths you can set the include paths to be passed to the compiler

See attached png file for an example.