Click here to Skip to main content
15,888,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted

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.
 
Share this answer
 
Comments
Albert Holguin 20-Apr-11 8:18am    
my 5, propose as solution
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.
 
Share this answer
 
Comments
markkuk 20-Apr-11 9:10am    
You should install gcc4-g++ instead of gcc-g++ in order to get the current compiler version (4.3.4) instead of the old GCC 3.4.
RedSonja 20-Apr-11 9:14am    
My project leader now tells me I want to start with gcc 4.0.1 for the Solaris 9 version and later this year move to gcc 4.2.4 on Solaris 10. Me, I'm happy if I get it to run at all.
I think our Cygwin is a bit old, shall ask admin to get us a newer one. How can I get gcc to tell me which version it has?
RedSonja 20-Apr-11 9:18am    
ah, gcc --version
gives me 3.4.4, must get a newer one.
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.
 
Share this answer
 
Comments
Albert Holguin 20-Apr-11 9:46am    
if this is a different question, post a different question... this is certainly not a solution to your original question so don't post it as such.
RedSonja 20-Apr-11 10:01am    
Sorry
Albert Holguin 20-Apr-11 10:12am    
no worries :) ...it helps keep the site clean, so if someone has a question similar to your original (Which gcc for Windows with Cygwin), they'll be able to search the site (or google, or MSDN, both of which bring up articles and questions within CP) and find an answer...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900