cpp header list | cpp reference
cpp header list | IBM
// Install requirements sudo apt install -y git build-essentials cmake cppcheck
-
Preprocess $ g++ -E hello.cpp > hello.i
-
Compilation $ g++ -S hello.i
-
Assembly $ g++ -c hello.s
-
Linking $ g++ hello.o -o hello
// Useful Compilation flags
-std=c++17 // version
-Wall, -Wextra, -Werror // warning
-O0 // Optimization ( no optimizations [default] )
-O3 or -Ofast // Optimization ( full optimizations )
-g // Keep Debugging symbols
Make ဘာလဲ နှင့် Dyanmic lib / Static lib များအကြောင်း
Compilers in Linux
CMake part 1 Introduction
CMake part 2 ( include_directories )
CMake part 3 ( set(), message(), if() )
CMake part 4 ( add_library() )
CMake part 5 ( variables )
CMake part 6 ( config_file )
CMake part 7 ( if, foreach, while )
CMake part 8 ( function, cache )
CMake part 9 ( compile, install )
CMake part 10 ( file, string, execute process )
CMake part 11 ( find_package() )
CMake part 12 ( target )