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

            他強(qiáng)由他強(qiáng),清風(fēng)拂山崗;他橫由他橫,明月照大江。他自狠來(lái)他自惡,我自一口真氣足

              C++博客 :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
              20 隨筆 :: 47 文章 :: 22 評(píng)論 :: 0 Trackbacks
            最近將編程環(huán)境升級(jí)到VS2008,結(jié)果很多原來(lái)正常編譯的projects都出現(xiàn)了編譯告警和錯(cuò)誤。花了一周多時(shí)間熟悉下VS2008.,總體來(lái)看vs2008在64位編程、多核/多處理器編譯、函數(shù)的安全性、c++模板的支持方面都有很多改進(jìn)。但是在升遷到新的環(huán)境之前也有很多問題需要重新考慮了。
            1。time_t在vs2003中默認(rèn)是32位__time32_t,現(xiàn)在默認(rèn)為__time_64_t了,如果要繼續(xù)兼任原有代碼必須在頭文件的開始處增加如下語(yǔ)句
            #ifndef _USE_32BIT_TIME_T
            #define _USE_32BIT_TIME_T//use __time32_t
            #endif
            2.sprintf,memcpy之類的函數(shù)都會(huì)提示告警,要繼續(xù)使用這些函數(shù)必須在定義宏
            #define _CRT_SECURE_NO_DEPRECATE
            #define _CRT_SECURE_NO_WARNINGS
            3.編譯時(shí)出現(xiàn):無(wú)法打開vc90.pdb的錯(cuò)誤。在MSDN上搜索了一下,解決辦法是http://msdn.microsoft.com/en-us/library/hk8k8k4h(VS.80).aspx
            原文貼在這里,主要是因?yàn)関s2008支持一在個(gè)solutions下多個(gè)不相互依賴的project的并行編譯,當(dāng)然前提是你的cpu是多核的或者有多個(gè)cpu。如果多個(gè)projects的output目錄相同就會(huì)碰到同時(shí)寫入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 胡雨田 閱讀(1848) 評(píng)論(0)  編輯 收藏 引用

            只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            久久亚洲天堂| 久久国产乱子精品免费女| 日产精品久久久久久久| 国内精品综合久久久40p| MM131亚洲国产美女久久| 日本精品久久久久中文字幕| 久久亚洲精品国产亚洲老地址 | 99精品国产在热久久| 久久午夜综合久久| 久久国产精品成人影院| 精品久久久久久久中文字幕| 久久综合给合久久狠狠狠97色| 国产精品99久久久久久猫咪 | 亚洲欧美国产精品专区久久| 久久久无码人妻精品无码| 久久99精品久久久久久齐齐| 精品久久久久久久无码| 久久精品国产99久久久古代| 久久精品国产亚洲7777| 免费观看成人久久网免费观看| 亚洲日本va中文字幕久久| 久久久久久国产精品免费免费| 久久―日本道色综合久久| 97精品国产91久久久久久| 日韩精品久久无码人妻中文字幕 | 麻豆久久| 三级片免费观看久久| 狠狠色伊人久久精品综合网| 一本久久久久久久| 国产精品狼人久久久久影院| 久久久国产精品福利免费 | 国产精品久久国产精品99盘| 久久久久亚洲av无码专区导航| 人妻精品久久无码专区精东影业| 囯产精品久久久久久久久蜜桃| 久久亚洲熟女cc98cm| 色综合久久久久无码专区| 久久青青草原精品国产| 久久国产精品99久久久久久老狼| 国产精品免费看久久久| 久久久久夜夜夜精品国产|