Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: davidinho on January 18, 2012, 12:43:37 pm

Title: only .exe and .c file
Post by: davidinho on January 18, 2012, 12:43:37 pm
Hi, I'm a student and so I do only simple programs, I've seen that when I compile a program, Code::Blocks create a large amount of file, is possibile to create only .exe and .c file?

Sorry for my english but I'm not British


P.S.: I'm talking about Windows
Title: Re: only .exe and .c file
Post by: oBFusCATed on January 18, 2012, 12:54:18 pm
No, why do you bother?

If you really want to have no "garbage" files, compile your code from the command line.
Title: Re: only .exe and .c file
Post by: MortenMacFly on January 18, 2012, 12:55:58 pm
If you really want to have no "garbage" files, compile your code from the command line.
...alternatively put the path for the object files and the path for the project files to somewhere, where it doesn't hurt you.
Title: Re: only .exe and .c file
Post by: davidinho on January 18, 2012, 01:06:12 pm
ok, another question:
if I want create a lot of little programs, I must do different project for any program?
Title: Re: only .exe and .c file
Post by: oBFusCATed on January 18, 2012, 01:37:38 pm
If you want to debug them or if you want to have multiple .c files per program: yes.
If you want just to test some stuff you can compile single files into programs using the default compiler.
I've heart this feature works, but you lose the ability to debug the programs.