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

Offline SSatint

  • Single posting newcomer
  • *
  • Posts: 1
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

  • Almost regular
  • **
  • Posts: 128
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: 10736
    • 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

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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10736
    • 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!]