User forums > Using Code::Blocks

Complex "Issue"

(1/2) > >>

TomCatFort:
Hello!

This "Issue" maybe complex and look strange, but it is important to me and I would greatly appreciate your responses.

I want to develop a cross platform C++ software (lets call it Product) that is made up from multiple shared libraries and applications. Problem originates from the way I wish to store the project files:

--- Code: ---x/out/Platform-Tool-Config/
x/proj_ide/Lib1/
x/proj_ide/App1/
x/include/Product/Lib1/
x/src/Product/Lib1/
x/src/Product/App1/
--- End code ---
Ass you can see I want a dedicated folder for library header files and the library and application source and furthermore separate directory for IDE project files. I need this as in the future I may need to switch or use multiple IDE/toolchains.
I tried many IDE: Netbeans, it lets me do it nicely, but the debugger refuses to stop at breakpoints and other similar problems. Visual Studio is not cross platform. And Eclipse won't let me store the source files this way even after of hours of fight with it. The latest CodeBlocks allows this but adding new files to the project is a great hassle, not to mention that after adding the file I manually need to move it into a virtual directory to make the workspace explorer look nice and simple (I can make screenshots and describe why is it looks bad and a hassle).

Does code blocks let me do this nicely? Or developing this kind of a product done in a different way? Maybe I need to learn and use CMAKE?

Please give me some help or advice. I took my day fighting with IDEs and not working debuggers.

oBFusCATed:
Hm, what version are you using?
Recent nightly builds have some improvement to the virtual folders.
Have you tried some of them?

@devs: Is it possible to add a file to the project with right clicking on a virtual folder? If not is it easy to add? I never use virtual folders and I don't know it if is possible or not, and I do not have c::b to test it at the moment.

Jenna:
Do you really need virtual folders ?
Why not use real folders with this structure ?

TomCatFort:

--- Quote ---Hm, what version are you using?
--- End quote ---
I'm using the nightly build made Oct 29 2011, according to the about window.

--- Quote ---Is it possible to add a file to the project with right clicking on a virtual folder?
--- End quote ---
I tried, I can only add further virtual directories.

--- Quote ---Do you really need virtual folders ?
Why not use real folders with this structure ?
--- End quote ---
I use whatever works nicely, but non of them nice or easy to use.

EDIT: I added an image of using real folders and virtual folders. Real folders look very bad and they separate .hpp and .cpp files automatically. Virtual folders looks much better and they even let me put my files exactly where they belong logically (Include stores public API includes, source stores implementation and non public headers) but adding files to them is a hassle.

Jenna:
Right-click your project and chose "Project tree" (or go to "Project -> Project tree" and uncheck "Categorize by file type".
You can also play with th eother options, but this one unchecked and "Display folders as on disk" checked might be what you want.

Navigation

[0] Message Index

[#] Next page

Go to full version