然后就去知乎搜索类似的咨询了,
有没有与 C/C++ 编译链接makefile相关的书籍或者资料推荐?
Xi Yang提到的《C++ Cookbook》 确实不错,由浅入深,结合实践。
光看目录就有一种相见恨晚的感觉
Code: [show] | [select all]
Chapter1
Recipe 1.1. Obtaining and Installing GCC
Recipe 1.2. Building a Simple "Hello, World" Application from the Command Line
Recipe 1.3. Building a Static Library from the Command Line
Recipe 1.4. Building a Dynamic Library from the Command Line
Recipe 1.5. Building a Complex Application from the Command Line
Recipe 1.6. Installing Boost.Build
Recipe 1.7. Building a Simple "Hello, World" Application Using Boost.Build
Recipe 1.8. Building a Static Library Using Boost.Build
Recipe 1.9. Building a Dynamic Library Using Boost.Build
Recipe 1.10. Building a Complex application Using Boost.Build
Recipe 1.11. Building a Static Library with an IDE
Recipe 1.12. Building a Dynamic Library with an IDE
Recipe 1.13. Building a Complex Application with an IDE
Recipe 1.14. Obtaining GNU make
Recipe 1.15. Building A Simple "Hello, World" Application with GNU make
Recipe 1.16. Building a Static Library with GNU Make
Recipe 1.17. Building a Dynamic Library with GNU Make
Recipe 1.18. Building a Complex Application with GNU make
Recipe 1.19. Defining a Macro
Recipe 1.20. Specifying a Command-Line Option from Your IDE
Recipe 1.21. Producing a Debug Build
Recipe 1.22. Producing a Release Build
Recipe 1.23. Specifying a Runtime Library Variant
Recipe 1.24. Enforcing Strict Conformance to the C++ Standard
Recipe 1.25. Causing a Source File to Be Linked Automatically Against a Specified Library
Recipe 1.26. Using Exported Templates
Chapter2
Recipe 2.1. Making Sure a Header File Gets Included Only Once
Recipe 2.2. Ensuring You Have Only One Instance of a Variable Across Multiple Source Files
Recipe 2.3. Reducing #includes with Forward Class Declarations
Recipe 2.4. Preventing Name Collisions with Namespaces
Recipe 2.5. Including an Inline File
- Makefile.pdf
- (215.75 KiB) 已下载 79 次
- CMake_Tutorial 英文.pdf
- (197.09 KiB) 已下载 66 次
- CMake Practice 中文.pdf
- (264.27 KiB) 已下载 81 次
- O'Reilly - C++ Cookbook CPP_cookbok_source.zip
- (115.61 KiB) 已下载 69 次
- OReilly.C++.Cookbook.Nov.2005.rar
- chm文件
- (837.28 KiB) 已下载 67 次