• <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   管理


            久久久久久国产精品美女| 久久精品国产清自在天天线 | 一级做a爰片久久毛片16| 久久中文字幕精品| 久久亚洲精品无码aⅴ大香| 老司机午夜网站国内精品久久久久久久久| 超级碰久久免费公开视频| 狠狠久久综合| 久久天天婷婷五月俺也去| 久久久久亚洲av成人网人人软件| 国产精品久久久久久久久软件| 久久受www免费人成_看片中文| 久久天天躁夜夜躁狠狠躁2022| 无码人妻久久一区二区三区免费丨 | 久久国产色av免费看| 久久AV高清无码| 国内精品欧美久久精品| 怡红院日本一道日本久久 | 久久精品国产亚洲7777| 午夜视频久久久久一区 | 久久综合丝袜日本网| 久久久久18| AV无码久久久久不卡蜜桃| 久久av高潮av无码av喷吹| 精品国产乱码久久久久软件 | 国产午夜精品久久久久九九| 亚洲欧美另类日本久久国产真实乱对白| 亚洲香蕉网久久综合影视| 色综合久久中文色婷婷| 国产精品乱码久久久久久软件 | 久久91精品国产91| 久久久久久久99精品免费观看| 综合久久精品色| 欧美亚洲国产精品久久蜜芽| 久久乐国产综合亚洲精品| 日韩一区二区久久久久久 | 久久国产精品99精品国产| 青青热久久国产久精品| 色综合久久久久| 99国产欧美久久久精品蜜芽| 久久成人小视频|