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

            久久午夜伦鲁片免费无码| 情人伊人久久综合亚洲| 精品久久久无码21p发布| 日日噜噜夜夜狠狠久久丁香五月| 无遮挡粉嫩小泬久久久久久久| 99re久久精品国产首页2020| 久久精品成人免费国产片小草| 久久久久久精品成人免费图片 | 国产高清国内精品福利99久久| 久久久久久青草大香综合精品| 国产成人久久精品一区二区三区| 国产∨亚洲V天堂无码久久久| 欧美亚洲日本久久精品| 99久久精品国产高清一区二区| 伊人久久大香线蕉综合网站| 99久久精品午夜一区二区| 亚洲精品乱码久久久久久不卡| 狠色狠色狠狠色综合久久| 亚洲欧美日韩中文久久| 国产精品99久久久久久宅男| 日本强好片久久久久久AAA| 亚洲精品tv久久久久| 精品久久久无码中文字幕| 99久久成人国产精品免费| 久久人人爽人人爽人人爽| 99久久国产亚洲高清观看2024| 亚洲精品午夜国产VA久久成人| 久久久久久无码国产精品中文字幕| 精品国产乱码久久久久久郑州公司| yy6080久久| 久久无码AV一区二区三区| 日日狠狠久久偷偷色综合免费 | 色偷偷91久久综合噜噜噜噜| 久久精品国产福利国产秒| 国产精品一久久香蕉国产线看观看| 久久久久国产精品嫩草影院| 欧美与黑人午夜性猛交久久久| 老司机午夜网站国内精品久久久久久久久 | 久久久久国产一区二区三区| 激情五月综合综合久久69| 狠狠色综合网站久久久久久久|