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 Content-Type: multipart/alternative; boundary="part1_18.ea19e86.286e1639_boundary" 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 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--