News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Header and class files not showing in the Workspace

Started by Saldegracia, June 10, 2020, 10:14:16 PM

Previous topic - Next topic

Saldegracia

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!

stahta01

Likely you failed to save the project after you added the files to the project.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Saldegracia

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 :)