Windows平台创建Linux可用C++项目(转载,英文)
2010-03-15 23:29
573 查看
Eclipse with Cygwin GCC
I was setting up Eclipse for GCC under Windows the other day and I ran into a couple of snags. I have created a quick walk through if you are trying to setup Eclipse under Cygwin for windows below.To make thinges easy just install everything for Cygwin and Eclipse. In addition, you are also going to need to install CDT and Subclipse, which are plugins for Eclipse. CDT is the plugin for C++ and Subclipse is the plugin for Subversion. You don't need the Subversion plugin but if you are not currenlty using it, then it might be a good time to start.
In order for Eclipse to compile GCC programs correctly it needs to see appropriate executables in the PATH. The natural solution this is to just add "C://cygwin/bin" to the windows PATH. This creates a problem for applications like Gaim where it contains some DLL's that have the same name as some of the executables in Cygwin. In order to solve this problem just edit the project defaults and have new projects pre-append "C://cygwin/bin" to the PATH. A image of the window that needs to be modified is provided below.
http://hi.csdn.net/space-2370959-do-album-picid-497423-goto-down.html
That's it! You should be able to compile C and C++ programs without any problems. One last note, you may have to change the path "C://cygwin/bin" to meet your needs depending upon where you installed Cygwin.
相关文章推荐
- 艾伟_转载:基于.NET平台的Windows编程实战(三)—— 项目的创建及主界面的设计
- 【转载】Linux下SVN 检出windows SVN服务器上的项目出错:SSL handshake failed
- C/C++ 判断文件夹是否存在以及创建、删除文件夹 windows以及linux通用
- 关于Linux C++代码在Windows平台上的调试运行
- C/C++创建多级目录函数,支持windows和linux
- windows到linuxc++项目移植问题小结
- linux与windows获得项目的路径及创建下级目录
- Android基础之用Eclipse搭建Android开发环境和创建第一个Android项目(Windows平台)
- Android基础之用Eclipse搭建Android开发环境和创建第一个Android项目(Windows平台)
- Android基础之用Eclipse搭建Android开发环境和创建第一个Android项目(Windows平台)
- 【C/C++开发】C++静态库与动态库以及在Linux和Windows上的创建使用
- 转载:windows tomcat项目迁移到Linux上的配置与注意问题
- Android基础之用Eclipse搭建Android开发环境和创建第一个Android项目(Windows平台)
- C/C++创建多级目录函数,支持windows和linux
- Android基础之用Eclipse搭建Android开发环境和创建第一个Android项目(Windows平台)
- 转载:在Linux平台中调试C/C++内存泄漏方法
- [转载]如何在微软Windows平台上打造出你的Linux开发环境
- 基于.NET平台的Windows编程实战(三)—— 项目的创建及主界面的设计
- 基于.NET平台的Windows编程实战(三)—— 项目的创建及主界面的设计
- Android基础之用Eclipse搭建Android开发环境和创建第一个Android项目(Windows平台)