@echo off
pushd "D:\Program Files\MinGW\bin"
del [------PUT EXE NAME HERE------].exe
echo Compiling...
gcc -o [------PUT EXE NAME HERE------] "D:\Files\Programs\Source Codes\C\[------PUT FOLDER NAME HERE------]\[------PUT SOURCE NAME HERE------].c" -mwindows -mconsole
IF EXIST [------PUT EXE NAME HERE------].exe goto run
goto done
:run
echo Running...
echo
neotransotaku
Posts: 2357/4016 |
I've always used cygwin to do my UNIX needs on windows. I"ve always heard about MinGW in terms of C compilers and nothing more. Now, I'm enlightened, thanks |
Parasyte
Posts: 311/514 |
MinGW and Cygwin are seperate projects. Cygwin is more of a complete UNIX environment, similar to MinGW+MSYS. (MSYS is another package available on the MinGW sourceforge site.)
Cygwin: http://www.cygwin.com/ |
neotransotaku
Posts: 2338/4016 |
Originally posted by Parasyte
MinGW and Cygwin are 'UNIX abstraction layers' for Windows, which allow you to compile Windows programs with GCC.
Is that so? If MinGW is an abstraction layer, why does Cygwin use it since it is one too? Then again, I only need MinGW when I need gcc... can you clarify? |
Parasyte
Posts: 310/514 |
Some clarifications:
GCC is the compiler. MinGW and Cygwin are 'UNIX abstraction layers' for Windows, which allow you to compile Windows programs with GCC. Dev-C++ is an IDE.
If you download Dev-C++, you'll get the IDE and a MinGW package with GCC. Of course, you can also download each package seperately. I downloaded MinGW and GCC 3.4, opting not to use the IDE at all.
MinGW: http://sourceforge.net/projects/mingw (includes GCC) Dev-C++: http://sourceforge.net/projects/dev-cpp (includes MinGW and GCC) |
Apophis
Posts: 348/882 |
thanks for all the help. this thread can be closed now. |
Sokarhacd
Posts: 1067/1757 |
Dev-Cpp is also a good one, uses the gcc compiler and has a nice IDE, I would go with that, or Mingw |
neotransotaku
Posts: 2335/4016 |
you can also use GCC. GCC is available for windows via cygwin (although I think it uses Mingw though...) |
dan
Posts: 437/782 |
Mingw is pretty good. There's also the Visual C++ Toolkit 2003, of which I know nothing about, apart from the fact it's free. |
Apophis
Posts: 346/882 |
Are there any good free C++ compilers out there? I know there are free compilers, I just don't know which one to download. Any suggestions would be greatly appreciated.
Edit: Oops. Meant to put this in Programming, not AcmlmBoard programming. |