• <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)  編輯 收藏 引用

            亚洲&#228;v永久无码精品天堂久久 | 91精品国产综合久久香蕉| 97久久久精品综合88久久| 国产精品九九久久免费视频| 99久久国产亚洲综合精品| 久久久久成人精品无码中文字幕 | 久久久久国产亚洲AV麻豆| 日韩人妻无码一区二区三区久久 | 国产精品久久久久久久app | 久久婷婷五月综合色奶水99啪| 久久综合给合久久狠狠狠97色 | 青青青青久久精品国产h| 久久久久久国产精品无码下载| 国产精品九九九久久九九| 一级a性色生活片久久无| 国产AⅤ精品一区二区三区久久| 777午夜精品久久av蜜臀| 欧美午夜A∨大片久久 | 国产精品久久久香蕉| 国产精品久久久久久久午夜片| 久久久久亚洲AV无码网站| 久久无码中文字幕东京热 | 久久婷婷五月综合色高清| 精品国产乱码久久久久久人妻| 久久综合九色综合久99| 激情久久久久久久久久| 精品99久久aaa一级毛片| 久久久久久综合一区中文字幕 | 99久久中文字幕| 激情伊人五月天久久综合| 久久精品国产亚洲av麻豆色欲| 久久亚洲熟女cc98cm| 一级女性全黄久久生活片免费| 久久er国产精品免费观看8| 久久国产乱子伦精品免费午夜| 国内精品免费久久影院| 久久久久亚洲精品男人的天堂| 欧美午夜精品久久久久久浪潮| 久久综合九色综合久99| 超级碰碰碰碰97久久久久| 亚洲国产欧洲综合997久久|