Is it possible to install gcc compiler under Windows?

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
oldbam
New poster
Posts: 17
Joined: Tue Sep 14, 2004 9:30 am

Is it possible to install gcc compiler under Windows?

Post by oldbam »

I have Microsoft Visual C and run it under Windows 2000. But there are many differences between gcc compiler and my own. Is it possible to install gcc compiler and use it with Microsoft Visual C? Have anyone had the same problems? What can you advise me?
Plz, help.
Life is beautifull !!!
UFP2161
A great helper
Posts: 277
Joined: Mon Jul 21, 2003 7:49 pm
Contact:

Post by UFP2161 »

You can try installing Cygwin.
anupam
A great helper
Posts: 405
Joined: Wed Aug 28, 2002 6:45 pm
Contact:

Post by anupam »

A very good compiler program indeed for windows users. :lol:
"Everything should be made simple, but not always simpler"
oldbam
New poster
Posts: 17
Joined: Tue Sep 14, 2004 9:30 am

Post by oldbam »

And how to install gcc after cygwin? Is it possible to run tar gzip with cygwin, as i have found only such archives of gcc on the web?
Life is beautifull !!!
Per
A great helper
Posts: 429
Joined: Fri Nov 29, 2002 11:27 pm
Location: Sweden

Post by Per »

The easiest way is to add the gcc package when you are installing cygwin. You can also add the package later by running the cygwin setup program again.
oldbam
New poster
Posts: 17
Joined: Tue Sep 14, 2004 9:30 am

Post by oldbam »

Thanks a lot! I'll try it ...
Life is beautifull !!!
oldbam
New poster
Posts: 17
Joined: Tue Sep 14, 2004 9:30 am

Post by oldbam »

And what do i have to write in the cygwin.bat to use gcc compiler?
Life is beautifull !!!
Krzysztof Duleba
Guru
Posts: 584
Joined: Thu Jun 19, 2003 3:48 am
Location: Sanok, Poland
Contact:

Post by Krzysztof Duleba »

Have you ever worked with a command line shell? To use gcc, just start bash (for instance with cygwin.bat) and then type gcc (or g++).
UFP2161
A great helper
Posts: 277
Joined: Mon Jul 21, 2003 7:49 pm
Contact:

Post by UFP2161 »

It may also be possible to use C:\Cygwin\bin\gcc.exe (or g++.exe) with your editor.. I would search google for that though..
oldbam
New poster
Posts: 17
Joined: Tue Sep 14, 2004 9:30 am

Post by oldbam »

OK. Thanks, maybe i have problems with my cygwin, as there are no files in the bin directory... And my cygwin.bat returns "Bad name file"
Life is beautifull !!!
Krzysztof Duleba
Guru
Posts: 584
Joined: Thu Jun 19, 2003 3:48 am
Location: Sanok, Poland
Contact:

Post by Krzysztof Duleba »

Go to cygwin.com and follow installation instructions. Don't do anything manually, use setup.exe. If you don't have /bin directory, then you haven't installed cygwin at all.
oldbam
New poster
Posts: 17
Joined: Tue Sep 14, 2004 9:30 am

Post by oldbam »

Great thanks! :lol:
Life is beautifull !!!
Post Reply

Return to “C++”