• <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>
            隨筆 - 132  文章 - 51  trackbacks - 0
            <2012年6月>
            272829303112
            3456789
            10111213141516
            17181920212223
            24252627282930
            1234567

            常用鏈接

            留言簿(7)

            隨筆分類

            隨筆檔案

            文章分類

            文章檔案

            cocos2d-x

            OGRE

            OPenGL

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            參考地址:在Win7系統(tǒng)下搭建Eclipse+Cygwin開發(fā)環(huán)境 http://www.cnblogs.com/williamwue/archive/2011/06/30/2094979.html

            問題:用eclipse 建立編譯C++工程出現(xiàn)錯誤提示 symbol could not be resolved

            解決辦法:

            1.window -> preferences -> C/C++ -> debug -> source lookup path > Path Mapping
            Name:whatever  CompilationPath: \cygdirve\c      Local file system path:C:\

            用cygwin下的c盤來替代當(dāng)前的C盤 來查找需要的庫文件


            2.
            indexer:  index source and header files opened  in editor
            window -> preferences -> C/C++ -> indexer

            OK編譯的錯誤解決了
            運(yùn)行時又出現(xiàn)了如下的BUG:


            找不到對應(yīng)的文件,無法進(jìn)行調(diào)試,GOOGLE了半天才找到解決的方法:
            If you're working under Windows, have you set the required mappings?
            Maybe Eclipse couldn't find the Source because of the missing mapping to
            the (cygwin-)drive where your projects/workspaces are.

            When you start Cygwin, enter "mount" and look for the mapping you have:
            They may look like this:


            Admin@bs11-01xp ~
            $ mount
            D:\cygwin\bin on /usr/bin type system (binmode)
            D:\cygwin\lib on /usr/lib type system (binmode)
            D:\cygwin on / type system (binmode)
            c: on /cygdrive/c type system (binmode,noumount)
            d: on /cygdrive/d type system (binmode,noumount)
            e: on /cygdrive/e type system (binmode,noumount)
            j: on /cygdrive/j type system (binmode,noumount)
            n: on /cygdrive/n type system (binmode,noumount)
            u: on /cygdrive/u type system (binmode,noumount)
            w: on /cygdrive/w type system (binmode,noumount)
            x: on /cygdrive/x type system (binmode,noumount)
            y: on /cygdrive/y type system (binmode,noumount)
            z: on /cygdrive/z type system (binmode,noumount)



            My Projects ara all under J:\Projects, so my mapping needs to be present
            in Eclipse as:
            /cygdrive/j j:/


            Open Eclipse and then click
            - Windows => Preferences => C/C++ => Debug =>Common Source Lookup
            Path
            - Add a new Path Mapping: click [Add] => Path Mapping => [OK]
            - Select the new Mapping => [Edith] => change Name of Mapping "Project
            Source" => [Add]
            set "Compilation path" to the Source (Sample cygwin!) "/cygdrive/j"
            (without the quotes!)
            set"Local file system path" tho "J:\" (without the quotes!)
            上面配置對應(yīng)了/cygdrive/c  C:\
            但是我在windows下的工程目錄都是在G盤,同樣添加一個G盤的對應(yīng)目錄就OK了



            posted on 2012-10-24 10:56 風(fēng)輕云淡 閱讀(7214) 評論(2)  編輯 收藏 引用 所屬分類: Toolkit

            FeedBack:
            # re: win7+eclipse+CDT+cygwin symbol could not be resolved 2012-10-28 15:13 小張
            我的/cygdrive/c 會被自動轉(zhuǎn)換為\cygdrive\c然后就又找不到文件了。
            也就是任何/都會在輸入后被轉(zhuǎn)換為\ 求解!
            我用的是eclipse juno
              回復(fù)  更多評論
              
            # re: win7+eclipse+CDT+cygwin symbol could not be resolved 2012-11-01 21:02 Let me see see
            @小張
            我的也是自動轉(zhuǎn)為\cygdrive\c 這樣沒問題  回復(fù)  更多評論
              
            亚洲AV无一区二区三区久久| 热re99久久精品国99热| 久久噜噜电影你懂的| 青青草国产精品久久久久| 2021少妇久久久久久久久久| 国产亚洲欧美精品久久久| 国产精品久久午夜夜伦鲁鲁| www性久久久com| 国内精品久久久久久麻豆| 人妻中文久久久久| 久久香蕉超碰97国产精品| 91精品国产91久久| 久久这里有精品| 99久久精品日本一区二区免费 | 亚洲国产成人精品久久久国产成人一区二区三区综 | 久久国产劲爆AV内射—百度| 狠狠色丁香久久综合婷婷| 久久精品国产亚洲精品| 无码人妻久久一区二区三区| 精品人妻伦九区久久AAA片69 | 久久久久久久综合狠狠综合| 久久久久久久尹人综合网亚洲| 亚洲国产成人精品女人久久久 | 久久亚洲精品中文字幕| 国产精品久久久久aaaa| 伊人久久大香线蕉亚洲| 久久男人中文字幕资源站| 韩国三级大全久久网站| 亚洲国产精品无码久久一线| 久久久国产精品| 99久久国产综合精品成人影院| 男女久久久国产一区二区三区| 日本高清无卡码一区二区久久| 99久久精品免费看国产| 99久久99久久精品免费看蜜桃| 久久精品中文字幕一区| 免费精品久久久久久中文字幕| 国内精品伊人久久久久影院对白| 久久亚洲国产中v天仙www| 国产精品美女久久久久| 999久久久免费精品国产|