User forums > Using Code::Blocks

Used to auto-build when adding new files, but not anymore?

<< < (3/3)

MortenMacFly:

--- Quote from: oBFusCATed on December 10, 2015, 12:48:37 am ---@Morten: Probably we can delete the object file for main.cpp when the main.cpp file is added to the project. This will make sure that the file gets recompiled and the project re-linked. What do you think? But for sure this should wait for the 15.12 release to happen.

--- End quote ---
I fully agree.

So the issue is that the executable is still newer than the object / source file on the second step. Therefore its not being build.

@AntiElephant: For now, please bind yourself a key / short-cut to re-build and use this instead. This won't harm for single file projects anyways and is just what you want.

oBFusCATed:
@AntiElephant: Also can you post an issue on in the tracker on sourceforge.net, so we have it in the list of bugs and so we won't forget about it?

AntiElephant:

--- Quote from: oBFusCATed on December 10, 2015, 12:48:37 am ---The file is not stored there. You have to either delete it from the .obj folder inside your project or just hit the rebuild project/workspace button.

--- End quote ---

I did all that too, but I was making sure I hadn't clicked a wrong setting somewhere in CB.


--- Quote from: oBFusCATed on December 10, 2015, 12:48:37 am ---I doubt it has been working. Probably you've been doing something else.

--- End quote ---

I'm doing all the exercises in C++ Primer, and constantly swapping between source files as I complete new exercises and go back to my main testing source file (test.cpp). I must've swapped files near 1000 times, but I've pretty much never had to click "rebuild" until today. So I do find it very odd I did not come across this bug until recently.

I've added it to sourceforge:

https://sourceforge.net/p/codeblocks/tickets/270/

oBFusCATed:
Thanks.

Navigation

[0] Message Index

[*] Previous page

Go to full version