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

            久久精品国产精品亚洲下载| 亚洲AV无码久久精品狠狠爱浪潮| 久久精品国产AV一区二区三区| 精品久久久久久国产牛牛app| 久久免费的精品国产V∧| 久久99精品久久久久子伦| 久久精品国产亚洲精品2020| 日韩人妻无码精品久久久不卡| 久久伊人五月丁香狠狠色| 亚洲日本va午夜中文字幕久久 | 色综合久久中文字幕无码| 久久综合久久综合亚洲| 国内精品人妻无码久久久影院导航| 久久99热这里只有精品66| 久久精品青青草原伊人| 激情伊人五月天久久综合| 亚洲国产精品婷婷久久| 欧美成a人片免费看久久| 久久久久久久97| 久久99国产精品久久久 | 国产福利电影一区二区三区久久久久成人精品综合 | 国产亚洲精品美女久久久| 精品久久久久香蕉网| 久久99毛片免费观看不卡| 青青久久精品国产免费看| 久久久久久久久波多野高潮| av国内精品久久久久影院| 欧美久久综合九色综合| 久久精品国产亚洲AV无码娇色| 伊人久久综在合线亚洲2019| 久久99九九国产免费看小说| 国产精品久久99| 久久AV无码精品人妻糸列| 精品一久久香蕉国产线看播放| 伊人久久大香线蕉av不卡| 国内精品久久久久国产盗摄| 2020国产成人久久精品| 精品免费久久久久国产一区| 亚洲av日韩精品久久久久久a| 久久99亚洲综合精品首页| 精品国产VA久久久久久久冰|