0

All I want is to make a different folder for .o files and .exe files and .cpp files and store .o and .exe files into the respective folders, right after building.

  • Is that possible?
  • If yes, how?
Lundin
  • 195,001
  • 40
  • 254
  • 396
Dudeness
  • 97
  • 5
  • 1
    It depends on what linker (and compiler) you are using. – Lundin May 04 '21 at 06:28
  • @Lundin so this is not IDE specific? I just want to make it such that every time I build a cpp file, it stores the .o and .exe files away from the .cpp files, since it looks a bit weird. – Dudeness May 04 '21 at 06:33
  • 1
    I don't know how you've managed that in the first place. Opening up a default gcc Codeblocks project I get source in the main folder then binaries below \bin\debug and object files below \obj\debug. – Lundin May 04 '21 at 06:49
  • 1
    Does this solve the problem..? https://stackoverflow.com/questions/1814270/gcc-g-option-to-place-all-object-files-into-separate-directory – Noah May 04 '21 at 22:09
  • @Lundin, maybe my code::blocks installation was messed up, if you can help in any way, it would be great. – Dudeness May 05 '21 at 03:06
  • @Noah, not really. I dont understand what he did, and I do not know what makefile and such means – Dudeness May 05 '21 at 03:07
  • Simple re-install it and try the default settings, then take it from there? – Lundin May 05 '21 at 06:38

0 Answers0