July 12th, 2003, 03:03 AM
Easy to Answer C++ Question...
For Everyone Other Than Me...
I looked around, and I think that this is the correct area to post this.
I am in the very early stages of a C++ How to... tutorial, and I am already stuck. I have written the source code and I don't know how to compile it. Do I need a seperate program to do this, or what?
Thanks in advance
July 12th, 2003, 03:15 AM
You need a compiler, there are plenty to choose from. If your just starting out and are making DOS programs, I recomend DJGPP, you can get it for free here
July 12th, 2003, 03:23 AM
July 12th, 2003, 03:24 AM
Thanks for the quick reply. Lets see if it happens again.
I am at: http://www.delorie.com/djgpp/zip-picker.cgi
Do I want to download: gpp323b.zip
It says C++ Compiler, but I am just being paranoid because I am new to this.
[Edit] : Thanks for the site d00dz Attackin. It seems to be more user friendly than the other site... (no offense). ;D
Can someone put that in Laman's Terms for me?
How do I set up the compiler?
From the bin directory of your installation: Create a bcc32.cfg file, which will set the compiler options for the Include and Lib paths, and add these lines:
Create ilink32.cfg and add this line:
ie. Where's the bin directory. How do I create a bcc32.cfg?
July 12th, 2003, 04:00 AM
Borlands a good product too Ive used both.
bin is short for binaries. In the folder where you downloaded and saved borland to, is another folder, a subfolder called bin.
Say you put borland here C:\Borland, then bin will be C:\Borland\bin
To create bcc32.cfg is simple, open up notepad, or your favorite text editor. Copy and paste the lines. Choose file>SaveAs, and in quotes put the filename "bcc32.cfg" and save this to your bin directory.
EDIT: You may find Dev-C++ easier then both, It has a graphical interface and requires no aditional configuration settings. http://prdownloads.sourceforge.net/d...devcpp4980.exe
July 12th, 2003, 04:43 AM
First, yes, you need a program which is called a compiler... it takes all those commands you have written and turns it into a program....
Second, I'd have to go with journy101 on the Dev-C++... that's what I used for about a last year to learn C++ or so and I was very happy with it. The program itself has a nice GUI (Graphical User Interface) that make requires NO previous knowledge of C++ to use, and most importantly its free .... but as of about two weeks ago I switched to Visual Studio (mostly for VB but C++ too) and I think I'm in heaven....
= Cheers, jag291 =
July 12th, 2003, 08:03 AM
I dont know how good this compiler is anymore but you could use Dev-C++... and once you finish up DOS programs u can code windows programs too. The link for it is:
Whoever said Assembly was dead?
July 12th, 2003, 08:24 PM
>>I dont know how good this compiler is anymore but you could use Dev-C++...
still very good, for Windows programs however you need a GUI toolkit like wxWindows to do anything usefull (Or use a bunch of createwindow calls) because suport for resource scripts was removed. I contacted them about this several times and have recently been told resource script suport is comming back, with a resource editor.
July 13th, 2003, 02:48 PM
I think if your a beginner and are useing windows you should get MSVC++ it has a easy grafic interface.