• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            我的CPP之路

            路漫漫其修遠兮
            隨筆 - 42, 文章 - 0, 評論 - 16, 引用 - 0
            數據加載中……

            gcc中的option使用筆記

            記錄下使用gcc新學的選項,-c,-Wall,-Werror,-O,-Idir,-llibrary,-pthread。目前,無法理解didier老師的Makefile中的-lpthread,-D_UNIX和-lm選項。主要還是要查閱gcc的官方manual,分為編譯選項和link選項等。。。比如4.4.5的使用手冊:
            http://gcc.gnu.org/onlinedocs/gcc-4.4.5/gcc/index.html#toc_Option-Index

                   file.cc
                   file.cp
                   file.cxx
                   file.cpp
                   file.CPP
                   file.c++
                   file.C
                       C++ source code which must be preprocessed.  Note that in .cxx, the last two letters must both be literally x.  Likewise, .C
                       refers to a literal capital C.

                   -c  Compile or assemble the source files, but do not link.  The linking stage simply is not done.  The ultimate output is in the
                       form of an object file for each source file.

                       By default, the object file name for a source file is made by replacing the suffix .c, .i, .s, etc., with .o.

                       Unrecognized input files, not requiring compilation or assembly, are ignored.

                   -Wall
                       This enables all the warnings about constructions that some users consider questionable, and that are easy to avoid (or
                       modify to prevent the warning), even in conjunction with macros.

                   -O
                   -O1 Optimize.  Optimizing compilation takes somewhat more time, and a lot more memory for a large function.

                       With -O, the compiler tries to reduce code size and execution time, without performing any optimizations that take a great
                       deal of compilation time.

            -Idir
                Add the directory dir to the head of the list of directories to be searched for header files.

            -llibrary
            -l library
                Search the library named library when linking.
            -pthread
                Adds support for multithreading with the pthreads library. This option sets flags for both the preprocessor and linker.
            -pthread
                Add support for multithreading using the POSIX threads library.
            -D name
                Predefine name as a macro, with definition 1.
            -Werror=
                Make the specified warning into an error.


            posted on 2010-12-24 11:32 yanvenhom 閱讀(497) 評論(0)  編輯 收藏 引用

            久久久久久久波多野结衣高潮| 无码任你躁久久久久久老妇App| 国内精品久久久久影院薰衣草 | 亚洲国产成人久久综合一区77| 国内精品久久久久久不卡影院 | 久久99久久成人免费播放| 久久国产成人午夜aⅴ影院| 人妻少妇久久中文字幕一区二区| 亚洲AV无一区二区三区久久 | 99精品国产综合久久久久五月天| 久久国产精品99久久久久久老狼| 久久精品人人做人人爽电影| 久久国产三级无码一区二区| 国产精品成人无码久久久久久| 精品久久一区二区三区| 精品久久久久久中文字幕| 97久久香蕉国产线看观看| 999久久久无码国产精品| 99久久精品国内| 欧美久久精品一级c片片| 久久国产乱子精品免费女| 99久久亚洲综合精品网站| 久久综合伊人77777麻豆| 伊人久久大香线蕉综合热线| 久久九九精品99国产精品| 国内精品伊人久久久久网站| 久久久久久久精品妇女99| 久久亚洲国产中v天仙www| 日日狠狠久久偷偷色综合免费| 久久久久亚洲AV无码专区首JN| 久久国产精品99国产精| 久久久亚洲精品蜜桃臀| 成人久久综合网| 久久99国产乱子伦精品免费| 国内精品久久久久久麻豆| 国产午夜福利精品久久2021 | 午夜精品久久久内射近拍高清 | 91精品国产高清久久久久久91 | 国内精品久久久久久中文字幕| 久久婷婷五月综合97色| 日产精品99久久久久久|