记录关于Linux应用编程的点点滴滴,编程相关例程及总结笔记
git clone https://github.com/Yangyuanxin/Linux_APUE.git
mkdir build && cd build
cmake ..
终端输出:
root@100ask:~/workspace/Linux_APUE# ls
CMakeLists.txt LinuxEpoll LinuxInotify LinuxPoll LinuxSharedLibrary LinuxSystemInfo LinuxThread main.c
LICENSE LinuxExec LinuxIO LinuxPosixIPC LinuxSignal LinuxSystemVIPC LinuxTime README.md
LinuxDir LinuxFifo LinuxMemoryMap LinuxProcess LinuxSocket LinuxTerminal LinuxTimer
root@100ask:~/workspace/Linux_APUE# mkdir build && cd build
root@100ask:~/workspace/Linux_APUE/build# ls
root@100ask:~/workspace/Linux_APUE/build# cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/book/workspace/Linux_APUE/build
root@100ask:~/workspace/Linux_APUE/build#
root@100ask:~/workspace/Linux_APUE/build# make
Scanning dependencies of target a.out
[ 50%] Building C object CMakeFiles/a.out.dir/main.c.o
[100%] Linking C executable a.out
[100%] Built target a.out
root@100ask:~/workspace/Linux_APUE/build# ./a.out
Hello LinuxAPUE
root@100ask:~/workspace/Linux_APUE/build#
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes ./a.out
- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request