您的位置:首页 > 运维架构 > Linux

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐