delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/26/11:45:26

Message-Id: <9607261540.AA14360@noteserv.osi.com.osi.COM>
To: djgpp <djgpp AT delorie DOT com>
From: Edward A Markiewicz/OSI
<Edward_A_Markiewicz/OSI DOT OSI AT noteserv-notes DOT osi DOT com>
Date: 26 Jul 96 9:40:00 EDT
Subject: Can't find stdio.h
Mime-Version: 1.0

Thanks for the help so far, but I do not know where I messed up yet.  This note 
will HOPEFULLY answer the questions I have received in response to my last memo.

Windows version:
 Windows for Workgroups 3.11
======================================================
What is "DOS shell":
 I click on "MS-DOS Prompt" in the "Program Manager" window.  This puts me  
into a DOS session.
======================================================
CONFIG.SYS:

C:\>type CONFIG.SYS                                                             
DEVICE=C:\DOS\HIMEM.SYS                                                         
DEVICE=C:\DOS\EMM386.EXE NOEMS                                                  
BUFFERS=10,0                                                                    
FILES=40                                                                        
DOS=UMB                                                                         
LASTDRIVE=Z                                                                     
FCBS=4,0                                                                        
DEVICE=C:\PLUGPLAY\DRIVERS\DOS\DWCFGMG.SYS                                      
DOS=HIGH                                                                        
DEVICEHIGH /L:1,12048 =C:\DOS\SETVER.EXE                                        
DEVICE=C:\SCSI\DOS\DOSCAM.SYS                                                   
rem *** NDIS drivers for Chameleon                                              
rem DEVICE=C:\NETMANAG\PROTMAN.DOS /I:C:NETMANAG                                
rem DEVICE=C:\NETMANAG\PCNTND.DOS /I:C:NETMANAG                                 
rem DEVICE=C:\NETMANAG\NETMANAG.DOS /I:C:NETMANAG                               
rem *** end NDIS drivers                                                        
STACKS=9,256                                                                    
SHELL=C:\DOS\COMMAND.COM /P /E:1024                                             
DEVICEHIGH /L:1,18320 =\BPCDROM\BPCDDRV.SYS /D:BPCDDRV$                         
====================================================== 
AUTOEXEC.BAT

IF EXIST BPCDDRV$ \BPCDROM\MSCDEX /D:BPCDDRV$                                   
@ECHO OFF                                                                       
PROMPT $P$G                                                                     
LH /L:1,56944 C:\MOUSE\MOUSE                                                    
rem PATH C:\NETMANAG;C:\DOS;C:\WINDOWS;C:\MACH64;C:\NCSA                        
REM PATH C:\DOS;C:\WINDOWS;C:\MACH64
                                            
PATH C:\DJGPP\BIN;C:\DJGPP\INCLUDE;C:\DOS;C:\WINDOWS;C:\MACH64                  

SET TEMP=C:\TEMP                                                                
LH /L:0;1,45504 /S SMARTDRV.EXE                                                 
LH /L:1,6384 C:\DOS\DOSKEY /INSERT                                              
rem SET PRINTER=lj4pls_1                                                        
rem SET SERVER=172.16.10.11                                                     
rem *** regular ethernet packet drivers for ncsa stuff                          
rem C:\PAKTDRV\PCNTPK -W INT=0x60 IRQ=3 IOADDR=0x300 DMA=3                      
rem C:\PAKTDRV\WINPKT 0x66 0x60                                                 
rem *** end packet drivers                                                      
rem ** Chameleon stuff                                                          
rem C:\NETMANAG\NETBIND                                                         
rem *** end Chameleon stuff                                                     
rem C:\AST_LOG                                                                  
rem echo Type WIN and press ENTER to return to Windows.                         
REM These lines added by PC-NFSpro Configuration                                
c:\pcnfspro\ETC\NFSWAUTO    
REM These lines added by PC-NFSpro 
Configuration                                                                                  

set DJGPP=C:\DJGPP\DJGPP.ENV                                                    
REM set PATH=C:\DJGPP\BIN;%PATH%                                                
(this line was commented out because the DJGPP directory was added to the PATH
entry above.)

win :   
======================================================
DJGPP.ENV

#= Don't edit this line unless you move djgpp.env outside                       
#= of the djgpp installation directory.  If you do move                         
#= it, set DJDIR to the directory you installed DJGPP in.                       
#=                                                                              
DJDIR=%:/>DJGPP%                                                                
                                                                                
+USER=dosuser                                                                   
+TMPDIR=%DJDIR%/tmp                                                             
+EMU387=%DJDIR%/bin/emu387.dxe                                                  
+LFN=n                                                                          
                                                                                
[bison]                                                                         
BISON_HAIRY=%DJDIR%/lib/bison.hai                                               
BISON_SIMPLE=%DJDIR%/lib/bison.sim                                              
                                                                                
[cpp]                                                                           
CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include;%DJDI
R%/contrib/grx20/include                                                        
C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/contrib/grx20/include 
OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/obj
c                                                                               
OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc       
   
[gcc]                                                                           
COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin                                     
LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx20/lib             
                                                                                
[info]                                                                          
INFOPATH=%/>;INFOPATH%%DJDIR%/info                                              
======================================================             
Output of "set":

COMSPEC=C:\COMMAND.COM                                                          
PROMPT=$P$G                                                                     
TEMP=C:\TEMP                                                                    
PATH=C:\PCNFSPRO\BIN;C:\DJGPP\BIN;C:\DJGPP\INCLUDE;C:\DOS;C:\WINDOWS;C:\MACH64  
TZ=MST5MDT                                                                      
windir=C:\WINDOWS                                                               
======================================================                   
Output from go32-V2 with no arguments:

go32/v2 version 2.0 built Jan 23 1996 22:03:02                                  
Usage: go32 coff-image [args]                                                   
Rename this to go32.exe only if you need a go32 that can run v2 binaries as     
 well as v1 binaries (old makefiles).  Put ahead of the old go32 in your PATH.  
DPMI memory available: 2316 Kb                                                  
DPMI swap space available: 34280 Kb                                             
======================================================  
Output of gcc with the "-v" argument:

gcc version 2.7.2                                                               
 cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -Di386 -DGO32 -DMS
DOS -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__
MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) samp.c C:\TEMP\
ccbaaaaa                                                                        
GNU CPP version 2.7.2 (80386, BSD syntax)                                       
#include "..." search starts here:                                              
#include <...> search starts here:                                              
 /usr/local/include                                                             
 /usr/local/go32/include                                                        
 /usr/local/lib/gcc-lib/go32/2.7.2/include                                      
 /usr/include                                                                   
End of search list.                                                             
samp.c:3: stdio.h: No such file or directory (ENOENT)                           
======================================================  
View of the directory:

C:\DJGPP>dir                                                                    
                                                                                
 Volume in drive C is VOLUME 1                                                  
 Volume Serial Number is 062F-0CF6                                              
 Directory of C:\DJGPP                                                          
                                                                                
.            <DIR>         07-24-96  11:18a                                     
..           <DIR>         07-24-96  11:18a                                     
GNU          <DIR>         07-24-96  11:28a                                     
MYENV    TXT           145 07-24-96   2:02p                                     
TESTS        <DIR>         07-24-96   1:51p                                     
SAMP     C             200 07-25-96  10:41a                                     
ENV      LST           162 07-26-96   8:05a                                     
BIN          <DIR>         07-24-96  11:27a                                     
DJGPP    ENV           880 01-26-96  12:38a                                     
INCLUDE      <DIR>         07-24-96  11:27a                                     
INFO         <DIR>         07-24-96  11:27a                                     
LIB          <DIR>         07-24-96  11:27a                                     
MANIFEST     <DIR>         07-24-96  11:27a                                     
TMP          <DIR>         07-24-96  11:27a                                     
ZONEINFO     <DIR>         07-24-96  11:27a                                     
       15 file(s)          1,387 bytes                                          
                     158,040,064 bytes free                                     
======================================================  
Copy of the "C" program:

/* Program to find factorial of 6 */                                            
                                                                                
#include <stdio.h>                                                              
                                                                                
#define VALUE 6                                                                 
                                                                                
int i,j;                                                                        
void main()                                                                     
{                                                                               
        j=1;                                                                    
        for (i=1; i<=VALUE; i++)                                                
                j=j*i;                                                          
        printf("The factorial of %d is %d\n",VALUE,j
);                           
} 
======================================================
I hope that someone can see where I may have messed up with my install, and 
thanks 
to all who have answered so far.

Ed.






- Raw text -


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