User forums > Using Code::Blocks

Missing cpp file doesn't break the build?!

(1/2) > >>

oBFusCATed:
I renamed a .cpp file outside C::B, then I've rebuild the project and the build succeeded.

Here is part of the log:

--- Code: ---WARNING: Can't read file's timestamp: /home/obfuscated/projects/myproj/myfile.cpp

--- End code ---

Is it possible to make the build fail in this kind of situations?
I can do it, if the patch will be accepted.

MortenMacFly:

--- Quote from: oBFusCATed on January 24, 2010, 02:55:23 pm ---I renamed a .cpp file outside C::B, then I've rebuild the project and the build succeeded.

--- End quote ---
Well, if the build succeeded it means that this file is actually not needed. So why set the build as failed? If the file would really be needed the linker would complain and the build would fail, indeed. Can you clarify why this should be an error?

Jenna:
It also succeeds if the appropriate object-file remains and can be linked.

oBFusCATed:

--- Quote from: jens on January 24, 2010, 03:49:46 pm ---It also succeeds if the appropriate object-file remains and can be linked.

--- End quote ---
This is my case.
Is it possible to make this error?

MortenMacFly:

--- Quote from: oBFusCATed on January 24, 2010, 04:19:02 pm ---Is it possible to make this error?

--- End quote ---
What about a warning like:
"Warning: Probably linking against an obsolete object file (source file not accessible anmyore)."
Because probably you only have the object file. And then it wouldn't be an error.

Navigation

[0] Message Index

[#] Next page

Go to full version