www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/31/07:51:28

Xref: news2.mv.net comp.os.msdos.djgpp:8095
From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: something special with drdos?
Date: Fri, 30 Aug 1996 23:20:42 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 79
Message-ID: <3227D9BA.7DCB@cs.com>
References: <507cob$ort AT sat DOT ipp-garching DOT mpg DOT de>
NNTP-Posting-Host: ppp201.cs.com
Mime-Version: 1.0
To: Christoph Herberhold <herberho AT mango DOT biochem DOT mpg DOT de>
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Christoph Herberhold wrote:
> 
> Hi!
> Thanks for answering so soon. My compiler is unable to find the include
> library.
> I ran the compiler and registered the output as you proposed:
> [snip]
> 
> Looks like the compiler thinks it'a unix world?
> DJGPP.ENV is unchanged from the download.
> DJGPP is in the directory c:\DJGPP and I added
> SET DJGPP=C:\DJGPP\DJGPP.ENV to my autoexec.bat.
> Number of files in CONFIG.SYS is 15 and the exact
> line in the C-Prog is #include <stdio.h>
> 
> What's wrong????????

Hrm.  There are still a couple of possibilities:

1) Your autoexec.bat is running a batch file without the 'call' command
before it reaches the SET DJGPP= line.  This happened to another user on
the group; the solution is to either add 'call' to the line at fault, or
to put the SET command earlier in your autoexec.bat.

2) You are running out of environment space before you reach the SET
command.  Try using F8 to step through your config.sys and autoexec.bat
and see if you get an error on the SET DJGPP line.  See the help on
drdos for how to increase the size of the environment.  (With command.com
you use the /E: switch.)

3) Some users have reported that while the standard SET command doesn't
work, the following command does:

call c:\djgpp\bin\setdjgpp c:\djgpp c:/djgpp

If you try this and it works, please post again here to tell us.  :/

4) You are running DJGPP under Windows 95 with LFN's enabled and the
environment loader is being confused by the case of the SET line.  This
really wouldn't make any sense, but it's theoretically possible.

Anyway, it looks like somehow the environment variable is either not
being set or is not being recognized by DJGPP.  If nothing above works
or is the case, please also post the following things here on the group:

- Your autoexec.bat (and config.sys if you think it might be helpful)
- Type 'set > environ.lst' from DOS and post the resultant data.

These will probably be sufficient to solve the problem, but for complete-
ness you should probably also post 'djgpp.env' and the output of 'go32-v2'
when invoked without arguments.

hope this helps!

John <fighteer AT cs DOT com>

P.S.:  Standard gcc is compiled with a default list of standard Unixy
directories to search for files.  Since this part has not been modified
for DJGPP, you will still see these in gcc's output.  This is perfectly
normal behavior, although it is mostly useless in a DOS setting.  When
it is correctly interfacing with your environment, you will see the
DJGPP directories after the Unixy ones in the include path that gcc
prints.  That you are not is what indicates that something is wrong!  :)

P.P.S.:  Your email address as shown in the From: line of your posts is
incorrect.  Most mailers reply by this address unless you have a Reply To:
line in there somewhere.  I think that you're trying to make this work
by putting a To: line in the header pointing to yourself; that isn't
the right way to do it.  Try either fixing your From: line or adding a
Reply To: line.

-- 
                      Anything that happens, happens.
    Anything that, in happening, causes something else to happen, causes
                         something else to happen.
 Anything that, in happening, causes itself to happen again, happens again.
        It doesn't necessarily do it in chronological order, though.
 
                                       --- Douglas Adams

- Raw text -


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