参考地址:在Win7系统下搭建Eclipse+Cygwin开发环境 http://www.cnblogs.com/williamwue/archive/2011/06/30/2094979.html
问题:用eclipse 建立编译C++工程出现错误提示 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盘来替代当前的C盘 来查找需要的库文件
2.indexer: index source and header files opened in editor
window -> preferences -> C/C++ -> indexer
OK编译的错误解决了