delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/09/04:38:36

Message-Id: <199707090838.KAA08864@d1o26.telia.com>
From: "Kristian Krebs" <kristian DOT krebs AT orebro DOT mail DOT telia DOT com>
To: <djgpp AT delorie DOT com>
Subject: Help with ezgcc
Date: Wed, 9 Jul 1997 12:00:38 -0700
MIME-Version: 1.0

Hello...

I have some trouble with either my DOS or the DJGPP C compiler (I don´t
think so) but I can´t figure it out myself. 

I have made a very simple set of C code, and copied it into the file
hello.c :

----------------------------------------------------------------------------
--------------------------------
main()
{
printf("Hello world!\n");
printf("This is line two");
}
----------------------------------------------------------------------------
--------------------------------

I compile it into hello.exe:

----------------------------------------------------------------------------
--------------------------------
C:\DJGPP\Exes>gcc -v hello.c -o hello.exe
----------------------------------------------------------------------------
--------------------------------

The DOS prompt returns the following messages:

----------------------------------------------------------------------------
--------------------------------
Reading specs from c:/djgpp/lib\specs
gcc version 2.6.3
 c:/djgpp/bin\cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=6
-Dunix -
Di386 -DGO32 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__unix
-D__i
386 -D__GO32 -D__MSDOS hello.c c:/djgpp/tmp\cc010145
GNU CPP version 2.6.3 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 c:/djgpp/include
 /usr/local/include
 /usr/local/go32/include
 /usr/local/lib/gcc-lib/go32/2.6.1/include
 /usr/include
End of search list.
 c:/djgpp/bin\cc1.exe c:/djgpp/tmp\cc010145 -quiet -dumpbase hello.c
-version -o
 c:/djgpp/tmp\cca10145
GNU C version 2.6.3 (80386, BSD syntax) compiled by GNU C version 2.6.3.
 c:/djgpp/bin\as.exe -o c:/djgpp/tmp\ccb10145 c:/djgpp/tmp\cca10145
 c:/djgpp/bin\ld.exe -o hello.exe c:/djgpp/lib\crt0.o -Lc:/djgpp/lib
c:/djgpp/tm
p\ccb10145 -lgcc -lc -lgcc
----------------------------------------------------------------------------
--------------------------------

The compiler has made hello.exe but when i run it my system goes down and I
get the following message:

----------------------------------------------------------------------------
--------------------------------
The program encountered an unspecified exception.

Fault location:		12F4:0158

Interrupts in service:	None
----------------------------------------------------------------------------
--------------------------------

And I´m totally lost.

My AUTOEXEC.BAT is:

----------------------------------------------------------------------------
--------------------------------
C:\MCAFEE\VIRUSS~1\SCANPM.EXE C:\
@IF ERRORLEVEL 1 PAUSE
rem ---------------------- MTM ATAPI CD-ROM ----------------------
rem - By Windows Setup - C:\WINDOWS\COMMAND\MSCDEX.EXE /D:MTMIDE01 /M:10
rem ---------------------- MTM ATAPI CD-ROM ----------------------
REM @ECHO OFF
PROMPT $p$g
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS;C:\DJGPP\BIN
SET TEMP=C:\DOS
mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi)
mode con codepage select=850
keyb sv,,C:\WINDOWS\COMMAND\keyboard.sys
CALL SETDJGPP
----------------------------------------------------------------------------
--------------------------------

And my CONFIG.SYS is:

----------------------------------------------------------------------------
--------------------------------
rem ---------------------- MTM ATAPI CD-ROM ----------------------
DEVICE=C:\MTM\MTMCDAI.SYS /D:MTMIDE01
rem ---------------------- MTM ATAPI CD-ROM ----------------------
DEVICE=C:\WINDOWS\SETVER.EXE
DEVICE=C:\WINDOWS\HIMEM.SYS
DOS=HIGH
device=C:\WINDOWS\COMMAND\display.sys con=(ega,,1)
Country=046,850,C:\WINDOWS\COMMAND\country.sys

REM ---------------------NEW--------------------------------------
FILES=30
SHELL=C:\COMMAND.COM C:\ /P /E:600
----------------------------------------------------------------------------
--------------------------------

Please help me with this problem so I can continue with my C course.

Yours sincere

K.Krebs
............................................................................
..............
Kristian Krebs
Östra Mölledalsvägen 27
SE - 236 34 Höllviken
Sweden
Telephone: + 46 40 45 53 52
E-mail address:  kristian DOT krebs AT orebro DOT mail DOT telia DOT com
                         (krikre AT geocities DOT com)
WebSite:http://www.geocities.com/SiliconValley/Bay/1354

- Raw text -


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