User forums > General (but related to Code::Blocks)
How to auto delete .o file after being compiled?
abaux:
I just switched over from Dev C++ today and I am trying to figure out how to get the .o files to get deleted after being compiled. With Dev C++, whenever I compiled it simply just gave me the .exe, that is all I want. I have no use for the .o file, have no idea what it really is (only that is is necessary for compiling), and it is just making my folder unorganized with more files. I never use projects, just a single .cpp and .exe file per program, plain and simple. So how can I make it like Dev C++ where there are no .o files after being compiled? Thanks in advance.
oBFusCATed:
Just live with it... This is how cb builds programs... The power of codeblocks is when you use a project. Then the object files are useful.
abaux:
There has to be a way though. Many people in this forum know this program inside out. I think I might be able to achieve this by messing with something in the advanced options in the compiler settings. Both code blocks and Dev C++ use MinGW so there must be a way... Shouldn't be too hard, but I am new to code blocks.
stahta01:
--- Quote from: abaux on March 31, 2016, 11:53:16 pm ---There has to be a way though. Many people in this forum know this program inside out. I think I might be able to achieve this by messing with something in the advanced options in the compiler settings. Both code blocks and Dev C++ use MinGW so there must be a way... Shouldn't be too hard, but I am new to code blocks.
--- End quote ---
Since, you refuse to use a CB project the only solution is to edit Code::Blocks yourself and build Code::Blocks after adding this feature.
Doing that would be a waste of time in my view; but, I have done a lot of things that others considered a waste of time. Feel free to waste your own time.
But, do NOT feel free to waste anybody else's time!
Tim S.
abaux:
Okay, just wanted to see if there was just a simple solution to it, but apparently not. I guess I will learn to live with it, I like Code::Blocks a better than Dev C++, so it's not too much of a big deal. Thanks guys for the information, feel free to close/delete/archive/whatever this thread. Cheers!
Navigation
[0] Message Index
[#] Next page
Go to full version