1

I got these console output while compilation via GCC.

Building CXX object xxxxxxx.cpp.obj 

What are the .cpp.obj files? Are they the object file? Do the same as the .o file?

6
  • How exactly are you building? Commented Nov 5, 2020 at 0:06
  • @dbush Hi, the makefile is generated from cmake, shall I do the cmake tag? Commented Nov 5, 2020 at 0:14
  • @ColonelThirtyTwo if .obj is the object file. Commented Nov 5, 2020 at 0:18
  • @JustWe It is. obj is short for object. You may also see .o. Commented Nov 5, 2020 at 0:19
  • Use file to determine file type. Commented Nov 5, 2020 at 0:23

1 Answer 1

1

What is .c.obj / .cpp.obj file?

Object files created from compiling .c and .cpp files respectively.

What are the .cpp.obj files?

See above.

Are they the object file?

Yes.

Do the same as the .o file?

Yes.

Note that "extension" is just part of a filename and is customizable. You can name your file anything you want you want, it will not affect the content. In cmake see CMAKE_C_OUTPUT_EXTENSION.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.