• <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之路

            路漫漫其修遠(yuǎn)兮
            隨筆 - 42, 文章 - 0, 評(píng)論 - 16, 引用 - 0
            數(shù)據(jù)加載中……

            gcc中的option使用筆記

            記錄下使用gcc新學(xué)的選項(xiàng),-c,-Wall,-Werror,-O,-Idir,-llibrary,-pthread。目前,無法理解didier老師的Makefile中的-lpthread,-D_UNIX和-lm選項(xiàng)。主要還是要查閱gcc的官方manual,分為編譯選項(xiàng)和link選項(xiàng)等。。。比如4.4.5的使用手冊(cè):
            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) 評(píng)論(0)  編輯 收藏 引用


            只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            久久激情五月丁香伊人| 国产Av激情久久无码天堂| 一本大道久久a久久精品综合| 久久久中文字幕| 2021国内久久精品| 伊人色综合久久| 久久国产精品成人影院| 日本加勒比久久精品| 久久99精品久久久久久动态图 | 国产精品欧美久久久天天影视| 一本大道久久a久久精品综合| 色播久久人人爽人人爽人人片AV| 99久久精品毛片免费播放| 国产精品亚洲综合久久| 久久久91精品国产一区二区三区| 一本色道久久88综合日韩精品| 久久精品国产精品亚洲精品| 欧美日韩精品久久免费| 久久电影网| 久久成人国产精品二三区| 久久丫精品国产亚洲av| 一本一本久久a久久综合精品蜜桃 一本一道久久综合狠狠老 | 热re99久久6国产精品免费| 日韩精品久久久久久久电影| 国产叼嘿久久精品久久| 久久青草国产精品一区| 久久AV高清无码| 久久99久久99精品免视看动漫| 亚洲综合伊人久久综合| 久久精品亚洲男人的天堂| 亚洲综合精品香蕉久久网| 2021最新久久久视精品爱| 亚洲精品成人久久久| 成人精品一区二区久久| 久久久久久噜噜精品免费直播| 91精品国产色综久久| 热re99久久精品国产99热| 久久亚洲国产欧洲精品一| 日本福利片国产午夜久久| 99久久夜色精品国产网站| 国产精品99久久久久久猫咪|