This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

GCC compiler...


 

Dear GNU and/or GCC,

 

I downloaded all four components GCC, binutils, mingw32 and the windows32api headers.  I followed the instructions on the installation page, unfortunately I was not successful getting the GCC Compiler to work.  The response is “Bad Command.”  Below is a copy of my AutoExec.bat file.  Below that is a outline of the folders.  If you can offer any advice I would appreciate it.

 

I want to be able to compile and execute C programs, I am just beginning to learn the language and am generally not to computer literate.  If there are “dumbed down” installation instructions please direct me to those.  Or I would be happy to purchase the software on a CD-ROM if that would make it easier for me to load and use.  (I was referred to your site by my professor Dr. Blaine Garfolo (SFSU)—he assumes more technical ability than I have.)  If you can provide me with any assistance I would certainly appreciate it.  My email address is RobertsBrad@MSN.com.  Thank you for your help.

 Brad Roberts

 

Autoexec.bat:

 

@ECHO OFF

path=c:\windows;c:\windows\command;c:\MINGW32\BIN

\hibinv.exe

set C_INCLUDE_PATH=C:\MINGW32\include

set CPLUS_INCLUDE_PATH=C:\MINGW32\include\g++;C:\MINGW32\include

set LIBRARY_PATH=C:\MINGW32\lib

set GCC_EXEC_PREFIX=C:\MINGW32\lib\gcc-lib\

call \checksr.bat

IF "%config%"=="QUICK" GOTO QUICK

set EXPAND=YES

SET DIRCMD=/O:N

set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15

set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C

cls

call setramd.bat %LglDrv%

set temp=c:\

set tmp=c:\

path=%RAMD%:\;a:\;%path%;%CDROM%:\

copy command.com %RAMD%:\ > NUL

set comspec=%RAMD%:\command.com

copy extract.exe %RAMD%:\ > NUL

copy readme.txt %RAMD%:\ > NUL

 

:ERROR

IF EXIST ebd.cab GOTO EXT

echo Please insert Windows Millennium Edition Startup Disk 2

echo.

pause

GOTO ERROR

 

:EXT

%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL

echo The diagnostic tools were successfully loaded to drive %RAMD%.

echo.

 

IF "%config%"=="NOCD" GOTO QUIT

IF "%config%"=="HELP" GOTO HELP

LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%

::If MSCDEX doesn't find a drive...

IF ERRORLEVEL 1 SET CDPROB=1

::

GOTO QUIT

 

:HELP

LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%

::If MSCDEX doesn't find a drive...

IF ERRORLEVEL 1 SET CDPROB=1

cls

call help.bat

::

GOTO QUIT

 

:QUIT

call fixit.bat

rem clean up environment variables

set CDPROB=

set CDROM=

set LglDrv=

GOTO QUICK

 

:QUICK

 

 

 

 

 

 

Directories:

 

C:\MINGW32\

    gas-980119\

        bin

        hlp

        include

        lib\

            ldscripts

 

    gcc-2.8.1\

        bin

        hlp

        lib\

            gcc-lib\

                i386-mingw32\

                    2.8.1\

                        include\

                            objc

   

    mingw32-980105\

        include\

            sys

        lib

        samples\

            dlltest\

                rcs

            fixargv\

                rcs

            globbing\

                rcs

            seh

            test\

                rcs

 

    windows32api-980118\

        include\

            Windows32

        lib


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]