• <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
            數(shù)據(jù)加載中……

            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 閱讀(504) 評論(0)  編輯 收藏 引用

            波多野结衣久久一区二区| 18岁日韩内射颜射午夜久久成人 | 亚洲一级Av无码毛片久久精品| 国产精品美女久久久m| 久久久久久极精品久久久| 午夜精品久久久久久毛片| 国产一区二区精品久久凹凸| 无码人妻久久一区二区三区免费 | 亚洲精品乱码久久久久久自慰| 亚洲一区中文字幕久久 | 国产91久久综合| 国产精品视频久久| 国产精品久久精品| 国产91色综合久久免费| 久久精品99久久香蕉国产色戒| 婷婷国产天堂久久综合五月| 国产精品欧美久久久久无广告| 91精品国产9l久久久久| 91久久婷婷国产综合精品青草| 国产精品一区二区久久| 久久免费精品一区二区| 久久国产一区二区| 青青久久精品国产免费看| 久久九九兔免费精品6| 一本色道久久88加勒比—综合| 久久精品国产亚洲7777| 国内精品伊人久久久久妇| 99久久超碰中文字幕伊人| 亚洲精品高清一二区久久 | 国产精品99久久精品| 国内精品伊人久久久久影院对白| 亚洲国产成人久久一区久久| 久久精品国产亚洲AV久| 久久精品视屏| 久久国产精品久久久| 亚洲精品第一综合99久久| 91精品久久久久久无码| 精品国产乱码久久久久久郑州公司| 97超级碰碰碰碰久久久久| 国产精品久久久久久| 久久99精品综合国产首页|