Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Free C++ Compilers
  
User name:
Password:
Reply:
 

UserPost
neotransotaku
Posts: 2372/4016
g++ is just an alias for gcc with that flag...after all, it doesn't make sense to have a seperate compiler that practically compiles the same exact code--since all C++ code can be rewritten in terms of C
Parasyte
Posts: 315/514
You can pass the -x switch to gcc to get it to compile c++. I can't remember if it's -x cpp or -x c++. But one of those will do the trick. Rather than using g++, though that's what gcc will call with the -x switch set to compile C++ code. (blah)
HyperLamer
Posts: 3376/8210
What I've been using is just MinGW and Textpad. Open up a DOS window to wherever you keep the source codes, and compile and run with a generic makefile; I use this as a base (only works on XP):
@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.
Acmlm's Board - I2 Archive - Programming - Free C++ Compilers


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.018 seconds.