User forums > Help

Source subdirectory

<< < (2/2)

Jenna:
I know that dragging the files one by one is not the best way to do so, but it is the only way at the moment (except for unchecking "Display folders as on disk" in the project's context-menu -> "Project tree", but that's most likely also not what you want).

But except from this issue the possible solution is more or less exactly what you described.
If you want something different, you should describe it more exactly, and post a feature request or better a patch at berlios.

Jasper:
You are right, this is the closest approximation. I guess I was just a bit ticked off because it was something I expected to be possible, yet instead of being told it wasn't really possible, I got an answer in the form of "this is the way to do that", while it was really only an approximation of what I was trying to do. The problem was in both my assumption that it was possible and the lack of clarity on my description. I'm sorry.

What I really want is for the "source root directory" not to necessarily be the same direction as the one your cbp file is in. Currently the folder in which your cbp file is, is your "source root directory" as well as (under default settings) parent of the bin directory etc.
Now that I think of it, there will only be a few changes necessary for this change:
- before executing the compiler, a cd to the "source root directory"
- the project panel should display things with the source root directory as its root
- the autocompletion should be aware of the include path

I'll look into making a feature request later. A patch would indeed be better, but seeing as I currently don't even have a home-compiled Code::Blocks and that I am in a rather large project, that isn't really a possibility for me right now.

Phenom:
If you put the sources under a "source" folder, then the object files will be
placed under "obj/source", even when in project options the object files
are set to be created in the "obj" sub-directory.

Is there a way to override this?   


Phenom:
Anyone?

MortenMacFly:

--- Quote from: Phenom on May 27, 2010, 09:58:24 am ---Anyone?

--- End quote ---
You can select "flat object hierarchy" in the advanced compiler settings. But be warned: this will overwrite object files with the same name. Usually this is a very bad thing to do.

Navigation

[0] Message Index

[*] Previous page

Go to full version