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

            国产韩国精品一区二区三区久久| 嫩草伊人久久精品少妇AV| 国产成人久久精品二区三区| 99久久精品免费国产大片| 国内精品久久久久久中文字幕 | 久久亚洲私人国产精品vA| 99久久99这里只有免费的精品| 久久精品九九亚洲精品天堂| 亚洲国产精品成人AV无码久久综合影院| 久久久久久精品无码人妻| 久久香蕉超碰97国产精品| 国产精品成人精品久久久 | 久久久久久曰本AV免费免费| 国产亚洲欧美精品久久久| 欧洲国产伦久久久久久久| 伊人久久综在合线亚洲2019| 无码AV中文字幕久久专区| 欧美粉嫩小泬久久久久久久| 久久99精品国产一区二区三区| 久久久午夜精品| 国产精自产拍久久久久久蜜| 久久精品国产免费观看 | 久久99精品国产99久久6男男| 亚洲国产精品综合久久一线 | 国内精品伊人久久久影院| 国产成人AV综合久久| 99久久精品国产麻豆| 久久91精品国产91| 久久久久无码精品国产app| 人妻精品久久无码专区精东影业 | 丰满少妇高潮惨叫久久久| 无码任你躁久久久久久老妇App| 亚洲国产精品久久久久网站 | 99精品国产在热久久| 久久久久人妻一区二区三区vr | 婷婷久久精品国产| 久久久91人妻无码精品蜜桃HD | 久久精品国产亚洲av麻豆图片 | 久久www免费人成看国产片| 国产精品美女久久久久网| 国产精品久久久久…|