Author Topic: I don't want to create .o file when I compile C file, what should I do?  (Read 3106 times)

SSatint

  • Guest
I am a rookie and a beginner. I don't want the program to create the .o flie ,how to set?
Thank you very much!!!!!!!!!!!!!!!!!!
I need your help.

Offline sodev

  • Regular
  • ***
  • Posts: 497
Uninstall CodeBlocks, this will solve all your problems easily.

If you want to take a more painful path, google what the c programming language is, especially what a compiler is and does, and then rethink about your whish to not turn .c files into .o files.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
@sodev:
Strange aggression...  :-\
GCC is perfectly capable to produce the final executable without going to .o files.
We don't do it, but this doesn't mean it can't be done.
(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 BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
The question is why do you want to do that?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Probably because he/she has multiple simple test applications in a single folder and doesn't like the .o files cluttering the output.
(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!]