delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/14/12:35:58

Date: Wed, 14 Oct 1998 17:34:17 +0100 (BST)
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Please: Newbie and "Who's Afraid of C++" needs help w/djgpp
In-Reply-To: <36237020.4C72@erols.com>
Message-ID: <Pine.OSF.4.05.9810141704050.32169-100000@sable.ox.ac.uk>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Tue, 13 Oct 1998 dannys AT erols DOT com wrote:

> George,
> 
> After many dead ends, I finally tried the solution that a user named Jim
> Hill prescribed on Steve Heller's website. Basically consisted of
> modifying the mknorm.bat file by enclosing some arguments in " ", and
> then placing a blank line between all the IF statements. You can view
> the doc at http://www.koyote.com/users/stheller/pcdos.htm.

Hmm, the whole batch file seems rather bizarre to me; a makefile
could have done the same thing much more easily.

> It worked! Who knows why? So now I am able to compile the
> examples, but am still unable to compile my simple programs, eg Hello.

Yes, more information is needed about that.  As I said before
your general setup seems fine, so it must be something else
you're doing wrong.  Going to the directory containing `hello.c'
and running:

    gcc -o hello.exe -c hello.c

should generate the executable.  If it doesn't, try moving
`hello.c' into the root directory, going there and compiling it
(with the same command above).  The reason for trying this is
that if you use subdirectories of your root directory called
`dev' (e.g. `c:\dev') djgpp programs can't access files in them.
Putting hello.c in the root ensures that this won't happen;
obviously you don't want to do this in general though.

> I
> noticed that the samples are listed as CC Files in explorer with
> different icons than my Notepad files. What's up with that?  

That's just Windows; it's probably been told at some time that
`.cc' files are a certain type, and should have a special icon.
Don't let it worry you.

> I downloaded Rhide but have not installed it yet. Could that help? Or
> just complicate matters further? 

I think you could find RHIDE very useful; it depends on your
taste.  Some people like to run a program (e.g. RHIDE), and
type, edit, compile and test their code from within that
program.  Others prefer to use their favourite editor to write
the code, then something like Make to coordinate the compilation
-- or just run the compiler directly for small projects.

Certainly for beginners I think RHIDE is a good place to start,
but that doesn't mean it's not a good place to stay.  You're the
one who's using these tools; if you're uncomfortable look for
other ways to do things.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

xu do tavla fo la lojban  --  http://xiron.pc.helsinki.fi/lojban/lojban.html

- Raw text -


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