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

            huyutian

            他強由他強,清風拂山崗;他橫由他橫,明月照大江。他自狠來他自惡,我自一口真氣足

              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
              20 隨筆 :: 47 文章 :: 22 評論 :: 0 Trackbacks
            最近將編程環境升級到VS2008,結果很多原來正常編譯的projects都出現了編譯告警和錯誤。花了一周多時間熟悉下VS2008.,總體來看vs2008在64位編程、多核/多處理器編譯、函數的安全性、c++模板的支持方面都有很多改進。但是在升遷到新的環境之前也有很多問題需要重新考慮了。
            1。time_t在vs2003中默認是32位__time32_t,現在默認為__time_64_t了,如果要繼續兼任原有代碼必須在頭文件的開始處增加如下語句
            #ifndef _USE_32BIT_TIME_T
            #define _USE_32BIT_TIME_T//use __time32_t
            #endif
            2.sprintf,memcpy之類的函數都會提示告警,要繼續使用這些函數必須在定義宏
            #define _CRT_SECURE_NO_DEPRECATE
            #define _CRT_SECURE_NO_WARNINGS
            3.編譯時出現:無法打開vc90.pdb的錯誤。在MSDN上搜索了一下,解決辦法是http://msdn.microsoft.com/en-us/library/hk8k8k4h(VS.80).aspx
            原文貼在這里,主要是因為vs2008支持一在個solutions下多個不相互依賴的project的并行編譯,當然前提是你的cpu是多核的或者有多個cpu。如果多個projects的output目錄相同就會碰到同時寫入vc90.pdb的問題。知道了原因就很好解決了。
            Title: You may receive a "PRJ0008" or "C2471" or "C1083" or "D8022" or "LNK1103" or similar error message when you try to build a solution in Visual C++

            Symptoms:

            • D8022 : Cannot open 'RSP00000215921192.rsp'
            • PRJ0008 : Could not delete file 'vc90.idb'.
            • C1083 : Cannot open program database file 'vc90.pdb'
            • C2471 : Cannot update program database 'vc90.pdb'
            • LNK1103 : debugging information corrupt.
            Cause:

            This problem occurs when all of the following conditions are true:

            1. You have a solution with more than one project in it.
            2. Two or more of the projects are not dependent on each other.
            3. You have parallel builds enabled. (Tools -> Options: Projects and Solutions, Build and Run: "maximum number of parallel project builds" is set to a value greater than 1)
            4. You are building on a system with multiple CPUs (cores).
            5. Two or more of the non-dependent projects are configured to use the same Intermediate and/or Output directory.
            6. A specific race condition in mspdbsrv.exe remains uncorrected.
            Resolution:

            To resolve the problem do one or more of the following:

            • Reconfigure the non-dependent projects to specify an Intermediate and Output directory that is different from one another, e.g. Output Directory = "$(SolutionDir)$(ProjectName)\$(ConfigurationName)", Intermediate Directory = "$(OutDir)".
            • Adjust your solution's project dependencies (Project -> Project Dependencies...) so that each is dependent on another.
            • Disable parallel builds.
            • Add the "/onecpu" boot option to your boot.ini file.
            • Change you BIOS settings to enable/use only one CPU.
            • File a problem report with Microsoft Technical Support and keep bugging the *** out of them until they eventually fix mspdbsrv.
            posted on 2010-07-25 17:48 胡雨田 閱讀(1841) 評論(0)  編輯 收藏 引用
            狠狠久久综合伊人不卡| 国内精品久久久人妻中文字幕| 成人久久综合网| 91久久成人免费| 伊人久久无码精品中文字幕| 久久精品免费一区二区| 久久精品亚洲一区二区三区浴池| 精品精品国产自在久久高清| 狠狠久久综合伊人不卡| 久久精品a亚洲国产v高清不卡| 久久精品国产一区二区三区不卡 | 久久国产精品一区二区| 人人狠狠综合久久亚洲高清| 久久久久亚洲av无码专区| 久久嫩草影院免费看夜色| 精品久久久噜噜噜久久久 | 久久强奷乱码老熟女| 久久国产精品无码HDAV| 国产精品成人99久久久久 | 久久91精品国产91久久小草| 久久99热这里只频精品6| 亚洲国产精品久久久久久| 人妻精品久久久久中文字幕69| 久久精品无码一区二区三区日韩 | 99久久精品免费看国产一区二区三区 | 狠狠狠色丁香婷婷综合久久五月| 久久久久亚洲国产| 久久精品国产99久久香蕉| 成人a毛片久久免费播放| 丰满少妇高潮惨叫久久久| 久久亚洲春色中文字幕久久久| 色综合久久88色综合天天 | 久久久久久久久久久免费精品| 国产亚洲美女精品久久久久狼| 久久精品国产亚洲av麻豆色欲 | 色8激情欧美成人久久综合电| 色综合久久88色综合天天| 久久国产精品一区二区| 国产福利电影一区二区三区久久久久成人精品综合 | 久久久久99精品成人片| 久久亚洲AV永久无码精品|