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

            国产精品久久99| 亚洲Av无码国产情品久久| 国内精品久久久久久久久电影网 | 国产精品久久亚洲不卡动漫| 久久青青草原精品国产| 99久久国产免费福利| 女人高潮久久久叫人喷水| 婷婷伊人久久大香线蕉AV| 国产午夜电影久久| 亚洲色欲久久久综合网| 99热成人精品免费久久| 一本久久a久久精品vr综合| 99热成人精品免费久久| 日韩人妻无码精品久久久不卡| 久久精品国产69国产精品亚洲| 波多野结衣久久| 韩国三级中文字幕hd久久精品| 午夜精品久久久久久毛片| 久久精品亚洲欧美日韩久久| 久久综合九色综合网站| 一本久久综合亚洲鲁鲁五月天亚洲欧美一区二区 | 2021久久精品免费观看| 日本精品久久久中文字幕| 国内精品伊人久久久久777| 久久无码精品一区二区三区| 97精品伊人久久大香线蕉app| 无码人妻久久一区二区三区蜜桃 | 久久久久亚洲AV片无码下载蜜桃| 99精品伊人久久久大香线蕉| 97久久精品国产精品青草| 亚洲综合熟女久久久30p| 久久99九九国产免费看小说| 久久久久亚洲精品天堂久久久久久| 亚洲精品无码久久久久| 国产美女久久精品香蕉69| 日韩乱码人妻无码中文字幕久久| 性做久久久久久久久| 久久香综合精品久久伊人| 欧美亚洲国产精品久久| 99久久国产宗和精品1上映| 久久综合亚洲色一区二区三区|