delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/29/15:22:43

From: Emiloo283 AT aol DOT com
Message-ID: <18.ea19e86.286e1639@aol.com>
Date: Fri, 29 Jun 2001 13:34:49 EDT
Subject: help compiling in C
To: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: AOL 6.0 for Windows US sub 10523
Reply-To: djgpp AT delorie DOT com

--part1_18.ea19e86.286e1639_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

When I try to compile a program with the gcc command,it says bad command or 
filename.  I can run already compiled programs, but can't compile new ones.  
Please help.
 

A:\PROGRAMS>gcc big.c -o big.exe -lm
Bad command or file name
 
A:\PROGRAMS>gcc -c -Wall big.c
Bad command or file name
 
 
 
 
This is when i ran go32-v2:
 
 
C:\DJGPP\djdev203\bin>go32-v2
go32/v2 version 2.0 built Dec 24 1999 17:46:57
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
 but do not delete your old go32 - leave it in the PATH after this one.
Set GO32_V2_DEBUG=y in the environment to get verbose output.
 
DPMI memory available: 70635 Kb
DPMI swap space available: 57181 Kb
 
 
This is my environ file:
/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
#ifndef __dj_include_libc_environ_h_
#define __dj_include_libc_environ_h_
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
#ifndef __STRICT_ANSI__
#ifndef _POSIX_SOURCE
/* This starts at 1 and gets incremented every time some
variable in the environment is added, deleted, or changes
its value. It is meant to be used by functions that depend
on values of environment variables, but don't want to call
`getenv' unnecessarily (example: `__use_lfn').
To use this feature, define a static variable that is
initialized to zero, and compare its value with the value of
`__environ_changed': if they differ, you should call `getenv'
(and record the last value of `__environ_changed' you've seen). */
extern unsigned __environ_changed;
#endif /* !_POSIX_SOURCE */
#endif /* !__STRICT_ANSI__ */
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
#ifndef __dj_ENFORCE_FUNCTION_CALLS
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
#ifdef __cplusplus
}
#endif
#endif /* !__dj_include_environ_h_ */
 
This is my autoexec file:


C:\>SET windir=C:\WINDOWS
 
C:\>SET winbootdir=C:\WINDOWS
 
C:\>SET COMSPEC=C:\WINDOWS\COMMAND.COM
 
C:\>SET PROMPT=$p$g
 
C:\>SET TEMP=C:\WINDOWS\TEMP
 
C:\>SET TMP=C:\WINDOWS\TEMP
 
C:\>SET DJGPP=C:\DJGPP\DJGPP.ENV
 
C:\>SET PATH=C:\DJGPP\BIN;C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ATF
 
C:\>
 
This is my config file:
 
[menu]
menuitem=HELP, Help
menuitem=CD, Start computer with CD-ROM support.
menuitem=NOCD, Start computer without CD-ROM support.
menuitem=QUICK, Minimal Boot
menudefault=HELP,30
menucolor=7,0
[HELP]
device=oakcdrom.sys /D:mscd001 
device=btdosm.sys 
device=flashpt.sys
device=btcdrom.sys /D:mscd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:mscd001
devicehigh=ramdrive.sys /E 2048
[CD]
device=oakcdrom.sys /D:mscd001 
device=btdosm.sys 
device=flashpt.sys
device=btcdrom.sys /D:mscd001
device=aspi2dos.sys
device=aspi8dos.sys
device=aspi4dos.sys
device=aspi8u2.sys
device=aspicd.sys /D:mscd001
devicehigh=ramdrive.sys /E 2048
[NOCD]
devicehigh=ramdrive.sys /E 2048
[QUICK]
[COMMON]
files=10
buffers=10
dos=high,umb
stacks=9,256
lastdrive=z
 
Thank You For Your Help,
Emily Verges, emiloo283 AT aol DOT com
 

 
 


--part1_18.ea19e86.286e1639_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

<HTML><FONT FACE=arial,helvetica><FONT  SIZE=4>When I try to compile a program with the gcc command,it says bad command or 
<BR>filename. &nbsp;I can run already compiled programs, but can't compile new ones. &nbsp;
<BR>Please help</FONT><FONT  COLOR="#000000" SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">.</FONT><FONT  COLOR="#000000" SIZE=3 FAMILY="SANSSERIF" FACE="Arial" LANG="0">
<BR> 
<BR></FONT><FONT  COLOR="#000000" SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">
<BR>A:\PROGRAMS&gt;gcc big.c -o big.exe -lm
<BR>Bad command or file name
<BR> 
<BR>A:\PROGRAMS&gt;gcc -c -Wall big.c
<BR>Bad command or file name
<BR> 
<BR></FONT><FONT  COLOR="#000000" SIZE=3 FAMILY="SANSSERIF" FACE="Arial" LANG="0"> 
<BR> 
<BR> 
<BR></FONT><FONT  COLOR="#000000" SIZE=4 FAMILY="SANSSERIF" FACE="Arial" LANG="0">This is when i ran go32-v2</FONT><FONT  COLOR="#000000" SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">:
<BR></FONT><FONT  COLOR="#000000" SIZE=3 FAMILY="SANSSERIF" FACE="Arial" LANG="0"> 
<BR> 
<BR></FONT><FONT  COLOR="#000000" SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">C:\DJGPP\djdev203\bin&gt;go32-v2
<BR>go32/v2 version 2.0 built Dec 24 1999 17:46:57
<BR>Usage: go32 coff-image [args]
<BR>Rename this to go32.exe only if you need a go32 that can run v2 binaries as
<BR> well as v1 binaries (old makefiles). &nbsp;Put ahead of the old go32 in your PATH
<BR> but do not delete your old go32 - leave it in the PATH after this one.
<BR>Set GO32_V2_DEBUG=y in the environment to get verbose output.</FONT><FONT  COLOR="#000000" SIZE=3 FAMILY="SANSSERIF" FACE="Arial" LANG="0">
<BR> 
<BR></FONT><FONT  COLOR="#000000" SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">DPMI memory available: 70635 Kb
<BR>DPMI swap space available: 57181 Kb</FONT><FONT  COLOR="#000000" SIZE=3 FAMILY="SANSSERIF" FACE="Arial" LANG="0">
<BR></FONT><FONT  COLOR="#000000" SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0"> 
<BR> 
<BR></FONT><FONT  COLOR="#000000" SIZE=4 FAMILY="SANSSERIF" FACE="Arial" LANG="0">This is my environ file:</FONT><FONT  COLOR="#000000" SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">
<BR>/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
<BR>#ifndef __dj_include_libc_environ_h_
<BR>#define __dj_include_libc_environ_h_
<BR>#ifdef __cplusplus
<BR>extern "C" {
<BR>#endif
<BR>#ifndef __dj_ENFORCE_ANSI_FREESTANDING
<BR>#ifndef __STRICT_ANSI__
<BR>#ifndef _POSIX_SOURCE
<BR>/* This starts at 1 and gets incremented every time some
<BR>variable in the environment is added, deleted, or changes
<BR>its value. It is meant to be used by functions that depend
<BR>on values of environment variables, but don't want to call
<BR>`getenv' unnecessarily (example: `__use_lfn').
<BR>To use this feature, define a static variable that is
<BR>initialized to zero, and compare its value with the value of
<BR>`__environ_changed': if they differ, you should call `getenv'
<BR>(and record the last value of `__environ_changed' you've seen). */
<BR>extern unsigned __environ_changed;
<BR>#endif /* !_POSIX_SOURCE */
<BR>#endif /* !__STRICT_ANSI__ */
<BR>#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
<BR>#ifndef __dj_ENFORCE_FUNCTION_CALLS
<BR>#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
<BR>#ifdef __cplusplus
<BR>}
<BR>#endif
<BR>#endif /* !__dj_include_environ_h_ */
<BR> 
<BR></FONT><FONT  COLOR="#000000" SIZE=4 FAMILY="SANSSERIF" FACE="Arial" LANG="0">This is my autoexec file:</FONT><FONT  COLOR="#000000" SIZE=3 FAMILY="SANSSERIF" FACE="Arial" LANG="0">
<BR>
<BR></FONT><FONT  COLOR="#000000" SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">
<BR>C:\&gt;SET windir=C:\WINDOWS
<BR> 
<BR>C:\&gt;SET winbootdir=C:\WINDOWS
<BR> 
<BR>C:\&gt;SET COMSPEC=C:\WINDOWS\COMMAND.COM
<BR> 
<BR>C:\&gt;SET PROMPT=$p$g
<BR> 
<BR>C:\&gt;SET TEMP=C:\WINDOWS\TEMP
<BR> 
<BR>C:\&gt;SET TMP=C:\WINDOWS\TEMP
<BR> 
<BR>C:\&gt;SET DJGPP=C:\DJGPP\DJGPP.ENV
<BR> 
<BR>C:\&gt;SET PATH=C:\DJGPP\BIN;C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ATF
<BR> 
<BR>C:\&gt;
<BR> 
<BR></FONT><FONT  COLOR="#000000" SIZE=4 FAMILY="SANSSERIF" FACE="Arial" LANG="0">This is my config file:</FONT><FONT  COLOR="#000000" SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">
<BR></FONT><FONT  COLOR="#000000" SIZE=3 FAMILY="SANSSERIF" FACE="Arial" LANG="0"> 
<BR></FONT><FONT  COLOR="#000000" SIZE=2 FAMILY="SANSSERIF" FACE="Arial" LANG="0">[menu]
<BR>menuitem=HELP, Help
<BR>menuitem=CD, Start computer with CD-ROM support.
<BR>menuitem=NOCD, Start computer without CD-ROM support.
<BR>menuitem=QUICK, Minimal Boot
<BR>menudefault=HELP,30
<BR>menucolor=7,0
<BR>[HELP]
<BR>device=oakcdrom.sys /D:mscd001 
<BR>device=btdosm.sys 
<BR>device=flashpt.sys
<BR>device=btcdrom.sys /D:mscd001
<BR>device=aspi2dos.sys
<BR>device=aspi8dos.sys
<BR>device=aspi4dos.sys
<BR>device=aspi8u2.sys
<BR>device=aspicd.sys /D:mscd001
<BR>devicehigh=ramdrive.sys /E 2048
<BR>[CD]
<BR>device=oakcdrom.sys /D:mscd001 
<BR>device=btdosm.sys 
<BR>device=flashpt.sys
<BR>device=btcdrom.sys /D:mscd001
<BR>device=aspi2dos.sys
<BR>device=aspi8dos.sys
<BR>device=aspi4dos.sys
<BR>device=aspi8u2.sys
<BR>device=aspicd.sys /D:mscd001
<BR>devicehigh=ramdrive.sys /E 2048
<BR>[NOCD]
<BR>devicehigh=ramdrive.sys /E 2048
<BR>[QUICK]
<BR>[COMMON]
<BR>files=10
<BR>buffers=10
<BR>dos=high,umb
<BR>stacks=9,256
<BR>lastdrive=z
<BR> 
<BR>Thank You For Your Help,
<BR>Emily Verges, emiloo283 AT aol DOT com
<BR> 
<BR></FONT><FONT  COLOR="#000000" SIZE=3 FAMILY="SANSSERIF" FACE="Arial" LANG="0">
<BR> 
<BR> 
<BR></FONT></HTML>

--part1_18.ea19e86.286e1639_boundary--

- Raw text -


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