Can any one tell me how to compile a totaly stand-alone true-DOS program using any of the free compilers on this site?
Can any one tell me how to compile a totaly stand-alone true-DOS program using any of the free compilers on this site?
Step 1: Go to the compiler's web site.
Step 2: Read the compiler's documentation.
Step 3: Repeat at step 2 until enlightenment is achieved.
If this is too hard, go immediately to step 1a.
Step 4: End
Step 1a: Find all of your computer's parts
Step 2a: Find the box it came in.
Step 3a: Pack the computer neatly in the box.
If the computer is still plugged in, go to step 1b.
Step 4a: Go to the computer store where you bought it.
Step 5a: Give it back and say you're too stupid to own one.
Step 6a: End
Step 1b: Call the computer repair man.
Step 2b: Tell them to come get your computer.
If asked why
Step 3b: Tell them you are a moron.
Else
Step 3b: Be happy they don't know.
If this is too hard, go to step 1c.
Step 4b: End
Step 1c: There is no 1c, your only hope for survival is to enter politics.
-Prelude
My best code is written with the delete key.
I found absoloutely no documentation on any site.And you proved yourself an idiot by writing pathetic pseudo-code.You are probably one of those idiots who knows a litle about Windows and the Internet and so,thinks they know all about computers,which is truly sad .Does anybody here realy wanta help?
lmao
how long did u take to think that up, btw?
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
Borland is one of the companies that create compilers. They have an easy-to-use DOS integrated developers environment that comes with some of their products, such as Turbo C++. On the whole, I prefer their compilers to Microsoft Visual C++.
Borland's webpage They have available information on their compilers, as well as some free downloads of their earlier compilers. They are now giving away a new version of their compiler, Borland C++ 5.5 for free download. It requires you to become a member of the borland community, before downloading, however.
Common Problems and Questions
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:
-I"c:\Borland\Bcc55\include"
-L"c:\Borland\Bcc55\lib"
Create ilink32.cfg and add this line:
-L"c:\Borland\Bcc55\lib"
How do I compile a program?
Go to the bin directory, and type in: bcc32 <filename>
For example:
C:\BORLAND\BCC55\BIN\bcc32 example.cpp
Any questions?
There are numerous compilers available for C++ programming. One of the easiest compilers to use is the Bloodshed Dev compiler. This page will give you the information necessary to help you make your first program with that compiler.
You should already have downloaded Bloodshed Dev version 4.0. After you have installed the compiler, you should go to Start:Programsev-C++ and run Dev-C++. You may be asked whether you wish Windows to associate .c and .cpp files with the compiler; you should check Yes. After the program opens, go to File-New Project...; click on it. Select Console Application, and click ok. Enter a project name when prompted; enter the filename for your project. Dev-C++ will conveniently open a new file for editing, and this file will already contain the barebones of a C++ program. Delete what is shown in that file and enter the following:
To run this program, go to Execute-Run. You may be prompted to save your file; type a filename to save it. It will then execute the code you typed in. You probably won't see anything appear on the screen, although you might notice a brief flash of a DOS window. If you wish to force the compiler to leave that window open, go here. Keep in mind, when you create a finished program, you won't have a need to force the compiler to keep the window open, so you can remove the code to keep it open.Code:#include <iostream.h> int main() { cout<<"The Compiler Works"; return 0; }
How do I make an executable file?
With Dev-C++, to make an executable file is as simple as going to Execute-Compile. You might be prompted to save your file; save it. You will then find a .exe file with the same name as the .cpp file in your My Documents folder; this .exe file is the finished program that you have created.
I would just like to point out that all this info was obtained from this site. It may be helpful to have a better sense of humor in the future and possibly a little better researching skills.
I've seen all of that but:
i didn't want to become a part of 'the Borland community' but now i'm thinking about it.As for Dev-c++:i tried it and it kept saying:cannot compile,or something like that when i tried to 'Execute & Run'.
>I found absoloutely no documentation on any site.
Then you didn't look very hard, did you? In less than 30 seconds I loaded Borland's site and got the documentation for all of it's products then I went to Bloodshed's site and got their documentation for Dev C++. This was before responding to your plea for help by the way.
>And you proved yourself an idiot by writing pathetic pseudo-code.
No, I gave several valid steps for you to follow since the information you needed was very simple to find. Please read the smart questions link in my signature for more information that you should know before posting again.
-Prelude
My best code is written with the delete key.
What version of Dev C++, I believe the newest has problems. Try downgrading to Dev-C++ ver 4.
Thanks travelor,i am now part of the Borland commmunity and I'm downloading the Borland compiler.Il tell you if all goes well,once again thanks