News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

An option to clean a non-project, just a file?

Started by m00, December 28, 2005, 07:34:10 PM

Previous topic - Next topic

m00

When I wanted to open or create a new file, not a project. I would like to know if it is possible to clean when I use the "Compile current file"? Clean to remove the binary and *.o files.

foo <-- delete (clean)
foo.c
foo.o <-- delete (clean)

Thanks.

rickg22

Please submit a feature request at our sourceforge page. Thank you :)

m00

Ok, it means that this feature is not in C::B yet and I will submitting a request. Thanks.

grv575

Isn't that extra clutter for the menus?

Shouldn't the default behavior of compile current file instead be changed to first remove file.o and then compile?  It's only 1 file so no gain from build management (incremental compilation) and I'm sure if file.o exists and the user hit compile they are expecting to recompile, not get a message saying project is up to date (usually).  Maybe then change the name to build current file or...?

What are people thoughts on this one (know full well this could be 'holy war' type preference but just curious about what the behavior most people agree on)?

mandrav

Revision 1610 implements "Build", "Build and run", "Run", "Rebuild" and "Clean" compiler actions for single files (without project).
Be patient!
This bug will be fixed soon...

m00

Quote from: mandrav on December 28, 2005, 10:36:09 PM
Revision 1610 implements "Build", "Build and run", "Run", "Rebuild" and "Clean" compiler actions for single files (without project).
Your awsome, thanks!  :D

grv575

so aren't build & compile current file redundant now?

mandrav

Quote from: grv575 on December 28, 2005, 11:11:26 PM
so aren't build & compile current file redundant now?

No. For single files (w/o project) they behave the same, true. But for projects, "Build" builds the project while "Compile file" just compiles the active file (i.e. generates an object file from it).
Be patient!
This bug will be fixed soon...

takeshimiya

I think grv575 is refering to the case of single files (w/o project), wouldn't be wise to disable either Build or Compile file, if they do the same action (to remove redundance I suppose).

grv575

Well not a big deal.  Makes the most sense as it is I think since if you disable one then the meaning of rebuild etc for a single file becomes confusing.