Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Installing C++ Compiler Help Wanted (http://www.programmingforums.org/showthread.php?t=10306)

rathjeng1 Jun 12th, 2006 2:22 PM

Installing C++ Compiler Help Wanted
 
I bought Brian Overland's C++ Without Fear and I need help installing the co
mpiler that came with it. Can someone tell me how to do this stuff?

"To install the compiler and development environment from within
a DOS environment or Windows MS-DOS window:

1. From the root directory of your C drive, create a DJGPP directory:

C:\>mkdir djgpp


2. Change directory to djgpp.

C:\>cd djgpp


3. Copy the contents of the root directory of the CD. (This assumes
that your CD uses a D: drive letter; use whatever drive letter is
appropriate.)

C:\DJGPP>copy d:\*.*


4. Use unzip32.exe to decompress all the binary files.

C:\DJGPP>unzip32 *.zip


5. Your compiler and development environment should now be installed!
However, you still need to set environment variables, including
PATH, which makes executables available from any directory. You
should set the following values and then reboot:

Env. variable Setting
------------- ------------------
DJGPP C:\DJGPP\DJGPP.ENV
PATH C:\DJGPP\BIN;%PATH%

NOTE: Whenever you add a new value to the list of values for an
environment variable, use a semicolon to separate it. For example:

C:\DJGPP\BIN;other_values

* For Windows 2000 or Windows XP systems:

- Right-click "My Computer", then select "Properties";
- Select the "Advanced" tab, then click "Environment Variables" button;
- Edit the PATH system variable to add the C:\DJGPP\BIN subdirectory;
(if you are not an administrator, add the C:\DJGPP\BIN directory to
the user PATH variable - or create one with only this directory
since it is added to the system path);
- Add a new variable DJGPP and set its value to the full path
name of the DJGPP.ENV file, C:\DJGPP\DJGPP.ENV."

Jimbo Jun 12th, 2006 3:00 PM

You just posted the instructions for what you want to do. Are you having problem's with those? Do you not know where to find the "DOS environment" or have a similar problem?

rathjeng1 Jun 12th, 2006 4:40 PM

Sorry, let me clarify. I have no idea how to complete the first three steps. I'd like someone to tell me how to do these step-by-step:

1. From the root directory of your C drive, create a DJGPP directory:

C:\>mkdir djgpp


2. Change directory to djgpp.

C:\>cd djgpp


3. Copy the contents of the root directory of the CD. (This assumes
that your CD uses a D: drive letter; use whatever drive letter is
appropriate.)

C:\DJGPP>copy d:\*.*

Wizard1988 Jun 12th, 2006 4:44 PM

You have to go to start then run and type in cmd then press ok then simply type in the commands

rathjeng1 Jun 12th, 2006 5:02 PM

Thanks. When I do step 4 it says "'unzip32*.zip' is not recognized as an internal or external command, operable program, or batch file.", even though I did the first three steps right. Is there another way to decompress all the binary files?

Wizard1988 Jun 12th, 2006 5:04 PM

Try typing in unzip32 *.zip

Jimbo Jun 12th, 2006 5:58 PM

It seems like you don't have the unzip program installed (or at least in your $PATH). You can just use whatever program you normally use to unzip files and extract to the c:\djgpp directory. Windows XP should be able to handle .zip files already, IIRC.

[edit:] Just realized what Wizard had said and how it was different from yours :o

rathjeng1 Jun 12th, 2006 8:05 PM

Thanks for your help Jimbo and Wizard1988 but I'm going to use Code::Blocks instead. Tell me if there's a better C++ IDE.

Jimbo Jun 12th, 2006 8:39 PM

"Better" is subjective. Some people will say Code::Blocks is better. Others might prefer VC++. Start with one, and once you're used to it you can either keep it or try others to compare.

hervens48 Jun 12th, 2006 10:08 PM

no, use devc++, its better
www.bloodshed.net


All times are GMT -5. The time now is 8:00 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC