Windows与Cygwin一起使用的gcc [英] Which gcc for Windows with Cygwin

查看:93
本文介绍了Windows与Cygwin一起使用的gcc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们想将一个大型项目从Windows XP移植到Solaris.要开始使用(在等待硬件和管理人员完成工作的同时),我想安装gcc并将其在Windows下编译.我们已经有了Cygwin(2.510.2.2版).所以我只想下载gcc并使其运行.

gcc有许多版本,较新的版本似乎比旧的版本号低.我的同事告诉我最新的不适合,但他不知道哪一个适合.

那么,哪个版本的gcc适用于Windows XP和Cygwin?

We want to port a big project to from Windows XP to Solaris. To get started (while waiting for the hardware and admin bods to do their jobs) I want to install gcc and get it to compile here under Windows. We already have Cygwin (version 2.510.2.2). So I just want to download gcc and get it running.

There are many versions of gcc, and the newer ones seem to have lower version numbers than the old ones. My colleague tells me the newest ones are not suitable, but he doesn''t know which one is.

So which is the right version of gcc for Windows XP and Cygwin?

推荐答案

Cygwin的当前版本为 Cygwin包含GCC,请使用Cygwin setup.exe实用程序来安装gcc4软件包以及其他编程实用程序(如make).
The current version of Cygwin is 1.7.9-1[^]. Where did you get "version 2.510.2.2"?
Cygwin includes GCC, use the Cygwin setup.exe utility to install the gcc4 package and other programming utilities like make.


嗯,我猜想cygwin日志文件中的数字就是该版本. br/>
因此,如果我再次安装Cygwin,它会给我列出我可以选择的东西.我让它第一次以默认模式安装.让我们再试一次...

好的,在选择软件包"对话框中,有一个类别开发",并且里面有gcc,它被跳过了.因此,我将尝试打开gcc-g ++,这看起来很有希望.只是希望它知道所需的软件包并自动打开它们.我希望它能够做到.有增强功能,也可以单击它.谢谢,这似乎是在解决问题.
Ah, I guessed the number in the cygwin log file was the version.

So if I install Cygwin again, it gives me a list of stuff I can choose. I let it install in default mode the first time. Let''s try again...

OK, in the dialog "Select Packages" there is a category "Devel" and there is gcc in there, and it was skipped. So I''ll try turning gcc-g++ on, that looks promising. Just hope it knows which packages it needs and turns them on itself. I hope it will be able to make. There''s boost, click that as well. That seems to be doing the trick, thankyou.


现在很好.
现在有人告诉我一种简单的生成makefile的方法(不涉及输入300个文件名).我可以使用Visual SourceSafe制作的vssscc文件吗?有一个自动制作工具,但据我所知,它要我完成所有工作.
that''s very fine now.
Now someone tell me an easy way to generate a makefile (which does not involve typing in 300 filenames). Can I use the vssscc files made by Visual SourceSafe? There is an automake, but as far as I can see it wants me to do all the work.


这篇关于Windows与Cygwin一起使用的gcc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆