Author Topic: only .exe and .c file  (Read 5033 times)

Offline davidinho

  • Single posting newcomer
  • *
  • Posts: 2
only .exe and .c file
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: only .exe and .c file
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: only .exe and .c file
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline davidinho

  • Single posting newcomer
  • *
  • Posts: 2
Re: only .exe and .c file
« Reply #3 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: only .exe and .c file
« Reply #4 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]