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

            久久99精品久久久久久久不卡| 国产精品久久网| 思思久久精品在热线热| 久久精品亚洲AV久久久无码| 亚洲精品无码久久千人斩| 久久国产亚洲精品无码| 久久久久久极精品久久久| 久久婷婷五月综合国产尤物app| 久久ww精品w免费人成| 91麻精品国产91久久久久| 久久人妻AV中文字幕| 91久久精品视频| 久久狠狠高潮亚洲精品| 欧美久久综合九色综合| 嫩草影院久久99| 中文字幕日本人妻久久久免费| 国产精品亚洲综合专区片高清久久久 | 精品久久久久久无码专区不卡| 丁香五月综合久久激情| 久久精品人人做人人爽97| 无码任你躁久久久久久| 一本大道加勒比久久综合| 亚洲国产另类久久久精品 | 嫩草影院久久国产精品| 嫩草伊人久久精品少妇AV| 人妻少妇精品久久| 日本福利片国产午夜久久| 久久无码人妻一区二区三区| 99久久国产亚洲综合精品| 四虎国产精品成人免费久久| 国产精品欧美久久久久天天影视 | 伊人久久大香线蕉精品| 精品无码久久久久国产| 久久天天躁狠狠躁夜夜96流白浆| 综合人妻久久一区二区精品| 亚洲国产另类久久久精品| 97久久国产综合精品女不卡| 亚洲va久久久噜噜噜久久男同| 久久精品国产99久久久古代| 亚洲愉拍99热成人精品热久久 | 狠狠色丁香婷婷综合久久来来去|