Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Saldegracia on June 10, 2020, 10:14:16 pm

Title: Header and class files not showing in the Workspace
Post by: Saldegracia on June 10, 2020, 10:14:16 pm
Hi there, I am new to Codeblocks, this is probably some simple setup-issue but I have not been able to figure it out. I setup Codeblocks, wrote a little program that uses a class, built and compiled and everything ran nicely.

When I opened Codeblocks the next time  and opened the same project via "File/Recent Projects" all I can find in the project is the main.cpp but not the header file and the class .cpp. (see left side of the attached image). However, if I navigate to the project in the Windows file manager everything is there (right side of the image). The .h file is in the include folder and the class .ccp in src.

Any ideas why I can't see these files in the Codeblocks workspace?

Any help is much appreciated!
Title: Re: Header and class files not showing in the Workspace
Post by: stahta01 on June 10, 2020, 10:17:46 pm
Likely you failed to save the project after you added the files to the project.

Tim S.
Title: Re: Header and class files not showing in the Workspace
Post by: Saldegracia on June 14, 2020, 12:25:54 pm
Thank you. Yes, seems like that was it. I added the missing files but still can't get it to build...anyway, I'll remember to save project from now on, not just individual files :)