본문 바로가기

C++

build, clean, rebuild, compile, run/start

728x90

build, clean, rebuild, compile, run/start의 차이

  • Build compiles all modified code files in the project or workspace/solution, and then links the object files into an executable. If no code files have been modified since the last build, this option does nothing.
    즉, build = compile + link
  • Clean removes all cached objects and executables so the next time the project is built, all files will be recompiled and a new executable produced.
  • Rebuild does a “clean”, followed by a “build”.
  • Compile recompiles a single code file (regardless of whether it has been cached previously). This option does not invoke the linker or produce an executable.
  • Run/start executes the executable from a prior build. Some IDEs (e.g. Visual Studio) will invoke a “build” before doing a “run” to ensure you are running the latest version of your code. Otherwise (e.g. Code::Blocks) will just execute the prior executable.

Reference

[1] https://www.learncpp.com/cpp-tutorial/compiling-your-first-program/

'C++' 카테고리의 다른 글

C++ 주석 쓰는 법  (1) 2024.02.24
C++ Standard Library란  (0) 2024.02.24
What is Project and Workspace(or Solution)?  (0) 2024.02.19
C++ IDE 설치하기  (1) 2024.02.19
C, C++ 개발 workflow  (0) 2024.02.19