www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/25/08:25:44

From: "Ben Cluff" <ben AT broadlink DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: help with c++ compilier
Date: Mon, 25 Jan 1999 05:20:14 -0800
Organization: Sonic,Santa Rosa CA,http://www.sonic.net
Lines: 63
Message-ID: <78hr4o$tkj$1@ultra.sonic.net>
References: <36AB9DDB DOT 386441F4 AT roadrunner DOT com>
NNTP-Posting-Host: d42.nas21.sonic.net
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Bill, you may find programming DOS to be a bit difficult given your general
DOS experience. There is a long way to go my friend. I am not sure what your
intentions are or what you expect to get out of programming, but I hope you
have success. I would recommend getting a "Learning DOS 6.2" book or
something like that... pick up the basics...
I dunno, just trying to help yah.
Here is some answers:
The AUTOEXEC.BAT is located in your DOS drives root. C:\ Edit this file with
NOTEPAD.EXE or EDIT.COM. And add the line that is specified in the DJGPP
readme.1st to set the DJGPP Environment. You should also add the SET PATH
line that the readme.1st specifies into the AUTOEXEC.BAT. The AUTOEXEC.BAT
is a batch file that DOS and Windows9x executes when you boot to your DOS
drive. Just a bunch of settings :-)

To link your C++ program you are going to have to use gxx not gcc. For
compilation of your C++ program you can use gcc.
And yes MyFile.c = The source files name that you created.
In computers. When something is prefixed with "My" it nearly always means
your custom file/setting/whatever, and can be replaced with the applicable
name for you case.

You have alto work to do my friend. I would recommend learning about DOS
before you try to program it, but hey whatever floats your boat and is fun
for you is what you should do.
Ben Cluff


Bill Kramer wrote in message <36AB9DDB DOT 386441F4 AT roadrunner DOT com>...
>Hi DJ,
>
>I have been to the site to download everything I need to run the c++
>compiler from the following web site:
>
>http://www.delorie.com/djgpp/zip-picker.cgi (and also one other site for
>c++).
>
>I do have 2 questions however,
>1. The documentation directs me to modify my autoexec.bat file for
>setting an environment name and setting a path name. I am not sure how
>to make this change. I had assumed I would find the autoexec.bat on the
>C: drive however since this is a bat file I wasn't sure where to find
>it.
>
>2. On the documentation to run the compiler it reads:
>
>You can also combine the compilation and link steps, like this:
>        gcc -Wall -o myprog.exe mymain.c mysub1.c mysub2.c
>
>My questions are:
>    1. where does this command get entered?
>    2. does myprog mean I put in my file name and mymain ??? and
>mysub1??? and           mysub2??? (confused on what the "my sections are
>here I would assume that if my file name is for example ..... test.cpp
>then I would use the following command:
>gcc -Wall -o testprog.exe testmain.c testsub1.c testsub2.c
>
>Thank you for your help,
>
>Bill Kramer
>
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019