delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/03/10:46:59

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: I've tried everything, so nothing must be wrong...
Date: 2 May 1997 22:59:38 GMT
Organization: Oxford University, England
Lines: 92
Message-ID: <5kdrkq$c0@news.ox.ac.uk>
References: <336A8AAE DOT 29BC AT ic DOT gc DOT ca>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Simon Paterson (Paterson DOT Simon AT ic DOT gc DOT ca) wrote:
: I'm sorry to be posting such a basic question but I am at my wit's and
: on this one.

Sure, but you haven't given us *any* information about your system! :) If
you had done, the response would be much easier to write.

: I've been trying to get DJGPP to setup and running since
: about two weeks ago and nothing works.

Okay, get DJGPP working first. Forget graphics, try to compile a Hello
World program:

-- snip --
#include <stdio.h>
int main()
{
 printf("Hello, world!\n");
 return 0;
}
-- snip --

Save that as hello.c, and type:

gcc -o hello.exe hello.c

If it chugs your hard disk then gives you the command prompt back, all is
well and typing `hello' should make it print `Hello, world!'.

If there are errors during the compilation, do this:

redir -o output.txt -eo gcc -v -o hello.exe hello.c

and post the OUTPUT.TXT file that it creates. Also post the outputs of:

set > set.txt
dir c:\djgpp\manifest\*.mft > manifest.txt

replacing the path above with the path to the manifest subdirectory of
your DJGPP base directory.

: I'm trying to compile the GFX
: lib. so that I can get Allegro and the like working, but all I get is
: "no such file or directory  ENOENT" It's driving me nuts. 

If the Hello World program above compiles all right, move on to building
Allegro. You should have unzipped Allegro somewhere, preserving the
directory structure (check that the subdirectories are in there). Then you
cd to the base Allegro directory and type `make'. That's it. It should
compile the files, build the library, then make the executables for the
examples, demos and tools. Finally, it should tell you everything went
smoothly.

If this is not the case, what stage does it fail at? You mentioned
`ENOENT'. What isn't found? If it's cc1plus.exe (IIRC), when compiling
setup.cc, you haven't installed the C++ components of DJGPP. They are
required to build the Allegro setup program. Get lgp271b.zip and
gpp2721b.zip from /pub/simtelnet/gnu/djgpp/v2gnu on your local Simtelnet
mirror site.

: 	YES I have set up my .env and path in autoexec, 

Tell us exactly what you have in your autoexec.bat file.

: So that means that there must be something really simple that is wrong
: with what I'm doing. 

So say what you're doing! :)

: If someone could post a reply to this, perhaps
: including part of your autoexec.bat and other files that must be changed
: to get it working, I would owe you my life for it.

No point; it's all in the README.1ST file.

: Maybe someone should write a more in-depth installation help.me 	file so
: that these problems would be over and done with forever 	(and if such a
: file is out there, please tell me where to find 	it!).

README.1ST has all the information required in it. The problems come when
people don't do *exactly* what it says. If you disagree with this
assessment, please say what is wrong with README.1ST. It is intended to be
exactly the file you are asking for.

You might also like to look at the online documentation, from
http://www.delorie.com/djgpp/, follow the `Documentation' link. There's a
User's Guide which takes you through the setup procedure in different
words.

-- 
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford

- Raw text -


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