View Full Version : C++ Compilers

11-06-2002, 08:05 PM
Several months ago I bought a C++ for Dummies book which included a CD with a GNU C++ compiler on it. I've only just had the time to start on learning C++ and tried to install the free compiler. The problem is that I am runing Windows XP and the instructions for installing the compiler include making additions to the autoexec.bat file. My understanding of XP is that there is no autoexec.bat file. Does anyone have any suggestions or know of anywhere I could download a free C++ compiler?

11-06-2002, 08:36 PM
If the changes to autoexec.bat were to add/change environment variables (SET=...) then there is a nicer way you can set them in XP (although I don't know how exactly because I don't use it).

You could also try the free (after filling in heaps of forms) borland compiler at:


But you will still need to setup some environment variables.

11-06-2002, 08:50 PM

Heres a link to a very basic C/C++ compiler, no fancy features.......but it's small and efficient.......

11-06-2002, 11:04 PM
Is the compiler DJGPP?

You don't need an autoexec.bat. All it's doing is adding in PATHs.

All you have to do is open up system properties (WinKey + Pause/Break) or right click my computer and select properties. Choose Advanced, Environment Variables and edit the path for user or system depending on who you want to be using it. Just add the lines after the last entry making sure you seperate each entry with a ;

The locations you'll need to point to is the bin directory of the compiler and the include directory of the compiler and that should be it.

WinXP does have an autoexec.bat for backwards compatibility. XP should ask if it needs to add entries into it.

16-06-2002, 03:10 PM
That compiler *is* gcc. The entries it wants will be paths for include and library files.