Author Topic: Header and class files not showing in the Workspace  (Read 219 times)

Offline Saldegracia

  • Single posting newcomer
  • *
  • Posts: 2
Header and class files not showing in the Workspace
« 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!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6951
    • My Best Post
Re: Header and class files not showing in the Workspace
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Saldegracia

  • Single posting newcomer
  • *
  • Posts: 2
Re: Header and class files not showing in the Workspace
« Reply #2 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 :)