gcc
文章平均质量分 95
最快乐的寂寞是独处
最寂寞的快乐是无敌
展开
-
静态链接中的库顺序 (Library order in static linking)
文章目录摘要引入The basicsThe linking processSimple examplesCircular dependencyUsing linker flags to control the processBack to the original exampleConclusion 摘要 本文转载一篇国外大牛的文章, 关于静态链接中库的顺序. 原文地址: https://eli.thegreenplace.net/2013/07/09/library-order-in-static-lin转载 2021-02-12 17:16:45 · 711 阅读 · 0 评论 -
用gcc的-E选项来查看宏展开
有时代码中的宏挺复杂的, 人工去展开, 太费劲. 为了看复杂的宏 展开后的样子, 可以利用gcc -E选项来展开. gcc -E选项的作用: 仅预编译 -E选项就是制作预编译处理, 不做编译, 汇编, 连接. $ gcc --help Usage: gcc [options] file... Options: ... ... -v Display the programs invoked by the compiler. -###原创 2020-09-15 08:18:39 · 1802 阅读 · 0 评论