Code::Blocks Forums

User forums => Help => Topic started by: MehBlock on February 02, 2017, 03:20:45 pm

Title: CodeBlocks not opening full project
Post by: MehBlock on February 02, 2017, 03:20:45 pm
I have created a number of files and directories within my project folder, however when I try to open the folder as a project it won't let me.  After opening the project_name.cbp it only opens the main.cpp file and none of the other files or directories.

Is there a way of opening /importing the whole project as I saved it without recursively adding the files and directories, aka faffing about?

Thanks.
Title: Re: CodeBlocks not opening full project
Post by: BlueHazzard on February 02, 2017, 03:55:09 pm
Codeblocks does not manage projects with folders, so you have to add all files manually to a project. Then you save the project and all should be fine on loading...

To add files you can use:
Project->Add files
or to add many files
Project->Add files recursively

To save a project you have to hit:
File->Save project
There are some problems with project saving:
https://sourceforge.net/p/codeblocks/tickets/451/
https://sourceforge.net/p/codeblocks/tickets/396/

if this does not answer your question you have to ask more precise what you want to  achieve and the steps you try to do...
Title: Re: CodeBlocks not opening full project
Post by: MehBlock on February 02, 2017, 04:15:38 pm
Great that did it!

I recursively added the project folder to the project and clicked 'Save Project'. Now when I open it all the files are there.

Thanks.