• <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
            <2010年9月>
            2930311234
            567891011
            12131415161718
            19202122232425
            262728293012
            3456789

            常用鏈接

            留言簿(7)

            隨筆分類

            隨筆檔案

            文章分類

            文章檔案

            cocos2d-x

            OGRE

            OPenGL

            搜索

            •  

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

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

            問(wèn)題:用eclipse 建立編譯C++工程出現(xiàn)錯(cuò)誤提示 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盤來(lái)替代當(dāng)前的C盤 來(lái)查找需要的庫(kù)文件


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

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


            找不到對(duì)應(yīng)的文件,無(wú)法進(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!)
            上面配置對(duì)應(yīng)了/cygdrive/c  C:\
            但是我在windows下的工程目錄都是在G盤,同樣添加一個(gè)G盤的對(duì)應(yīng)目錄就OK了



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

            FeedBack:
            # re: win7+eclipse+CDT+cygwin symbol could not be resolved 2012-10-28 15:13 小張
            我的/cygdrive/c 會(huì)被自動(dòng)轉(zhuǎn)換為\cygdrive\c然后就又找不到文件了。
            也就是任何/都會(huì)在輸入后被轉(zhuǎn)換為\ 求解!
            我用的是eclipse juno
              回復(fù)  更多評(píng)論
              
            # re: win7+eclipse+CDT+cygwin symbol could not be resolved 2012-11-01 21:02 Let me see see
            @小張
            我的也是自動(dòng)轉(zhuǎn)為\cygdrive\c 這樣沒(méi)問(wèn)題  回復(fù)  更多評(píng)論
              
            亚洲精品无码久久久久去q| 91精品国产91热久久久久福利| 四虎影视久久久免费观看| 久久亚洲精品无码播放| 精品伊人久久大线蕉色首页| 久久这里只有精品18| 久久狠狠色狠狠色综合| 久久精品国产欧美日韩| 伊人久久精品影院| 久久国产色AV免费观看| 久久精品无码免费不卡| 人妻无码αv中文字幕久久琪琪布 人妻无码久久一区二区三区免费 人妻无码中文久久久久专区 | 99久久精品国产麻豆| 久久精品无码av| 久久久久亚洲Av无码专| 国产激情久久久久影院老熟女| 人妻无码精品久久亚瑟影视 | 久久99精品久久久久久不卡| 狠狠色丁香婷婷久久综合 | 中文成人无码精品久久久不卡| 中文字幕久久精品无码| 99久久精品免费看国产| 久久人人爽人人爽人人AV东京热| 91精品日韩人妻无码久久不卡| 久久久久久久久久久| 久久丝袜精品中文字幕| 久久久精品一区二区三区| 亚洲国产精品无码久久久蜜芽| 日本加勒比久久精品| 国产精品嫩草影院久久| 精品人妻久久久久久888| 久久精品国产久精国产果冻传媒| 精品久久久久久国产免费了| 91亚洲国产成人久久精品网址| 久久精品麻豆日日躁夜夜躁| 93精91精品国产综合久久香蕉| 久久亚洲精精品中文字幕| 国产69精品久久久久APP下载 | 麻豆亚洲AV永久无码精品久久| 国产亚洲精久久久久久无码77777 国产亚洲精品久久久久秋霞 | 久久久久久久97|