How do you redirect the location of _some_ of your object files?
This is a (slight) continuation of the problem found here:
http://forums.codeblocks.org/index.php/topic,11508.msg78392.html#msg78392The run down: For organizational purposes, I have a lib folder and a projects folder (using ~ for brevity):
~/lib/
~/projects/
I want my *.cpp, *.h, *.o files in the lib folder (i.e. ~/lib/bStat/bStat.o) and the project files in the project folder (i.e. ~/projects/bStat/bStat.cbp).
If I change my objects output dir (Projects > Properties > Build target > ), to handle this, it also moves my main.o file (which makes sense). The problem arises since the paths follow the same pattern for all projects, meaning the main.o for each project is in the same place. As is obvious, it means that whenever I compile a new program, it'll use the main.o for the last compiled project unless I delete the previous main.o.
Does anyone know of a workaround or of a good solution to this? I know I could manually curate the files, but that is tedious.
Any help is appreciated!