delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/08/17:18:49

Message-ID: <339B18A7.4E62@gapeach.net>
Date: Sun, 08 Jun 1997 16:40:08 -0400
From: Jacob Martin <jake AT gapeach DOT net>
Reply-To: jake AT gapeach DOT net
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: heres the info....
NNTP-Posting-Host: ip208.iainc.net
Lines: 336
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

ok here's my system info....

djgpp.env



#= 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;%DJDIR%/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/objc
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;%DJDIR%/gnu/emacs/info
INFO_COLORS=0x1f.0x31

[emacs]
INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info

[less]
LESSBINFMT=*k<%X>
LESSCHARDEF=8bcccbcc12bc5b95.b127.b
LESS=%LESS% -h5$y5$Dd2.0$Du14.0$Ds4.7$Dk9.0$

[locate]
+LOCATE_PATH=%DJDIR%/lib/locatedb.dat

[ls]
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
[dir]
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:
[vdir]
+LS_COLORS=no=00:fi=00:di=36:lb=37;07:cd=40;33;01:ex=32:*.cmd=32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.deb=01;31:*.jpg=01;34:*.gif=01;34:*.bmp=01;34:*.ppm=01;34:*.tga=01;34:*.xbm=01;34:*.xpm=01;34:*.tif=01;34:*.mpg=01;37:*.avi=01;37:*.gl=01;37:*.dl=01;37:*~=08:*.bak=08:


AUTOEXEC.BAT



rem prompt $e[1;31m$p$_$e[34m$t$h$h$h$e[1;31m$g$e[0m
SET
PATH=C:\WINDOWS;C:\WINDOWS\system;C:\WINDOWS\COMMAND;c:\;c:\dos;e:\DJGPP\bin
rem loadhigh C:\WINDOWS\COMMAND\MSCDEX.EXE /d:MSCD001 /M:10
rem loadhigh c:\dos\ansi.sys 
rem ALIAS PROON DEL /QSXYZ
rem ALIAS L TYPE *.NFO /P
rem ALIAS T TYPE *.TXT /P
rem smonitor 0
SET MIDI=SYNTH:1 MAP:E
SET SOUND=C:\PROGRA~1\CREATIVE\CTSND
SET BLASTER=A220 I5 D1 H5 P330 T6 
rem C:\windows\smartdrv.exe d+ c+  /V 1024 1024 /b:256                  
set djgpp=e:/djgpp/djgpp.env




CONFIG.SYS


files=30
buffers=30,0

device=c:\windows\himem.sys
dos=high,umb
devicehigh=c:\windows\emm386.exe RAM
rem devicehigh=C:\DEV\MTMCDas.SYS /D:MSCD001 /P:300 /A:0 /M:10 /T:5 /I:9

rem C:\WINDOWS\SETVER.EXE 



dpmi stuff




go32/v2 version 2.0 built Aug 12 1996 22:27:23
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: 9751 Kb
DPMI swap space available: 3585 Kb



ERROR MESSAGES!!!

E:\DJGPP\EXAMPLES>gcc ex1.c
e:/djgpp/tmp\ccdaaaaa(.text+0x19):ex1.c: undefined reference to
`allegro_init'
e:/djgpp/tmp\ccdaaaaa(.text+0x1e):ex1.c: undefined reference to
`install_keyboar
d'
e:/djgpp/tmp\ccdaaaaa(.text+0x33):ex1.c: undefined reference to
`set_gfx_mode'
e:/djgpp/tmp\ccdaaaaa(.text+0x3b):ex1.c: undefined reference to
`desktop_pallete
'
e:/djgpp/tmp\ccdaaaaa(.text+0x40):ex1.c: undefined reference to
`set_pallete'
e:/djgpp/tmp\ccdaaaaa(.text+0x4e):ex1.c: undefined reference to
`gfx_driver'
e:/djgpp/tmp\ccdaaaaa(.text+0x57):ex1.c: undefined reference to
`gfx_driver'
e:/djgpp/tmp\ccdaaaaa(.text+0x79):ex1.c: undefined reference to
`gfx_driver'
e:/djgpp/tmp\ccdaaaaa(.text+0x82):ex1.c: undefined reference to
`gfx_driver'
e:/djgpp/tmp\ccdaaaaa(.text+0xa9):ex1.c: undefined reference to `font'
e:/djgpp/tmp\ccdaaaaa(.text+0xaf):ex1.c: undefined reference to `screen'
e:/djgpp/tmp\ccdaaaaa(.text+0xb5):ex1.c: undefined reference to
`textout_centre'

e:/djgpp/tmp\ccdaaaaa(.text+0xbd):ex1.c: undefined reference to
`readkey'

DIRECTORY STRUCTURE


 Volume in drive E is ST52520DP2 
 Volume Serial Number is 8713-30E2
 Directory of E:\DJGPP

.              <DIR>        06-05-97 11:52p
..             <DIR>        06-05-97 11:52p
ALLEGRO        <DIR>        06-08-97  4:05p
BIN            <DIR>        06-05-97 11:55p
CONTRIB        <DIR>        06-05-97 11:56p
CROSS          <DIR>        06-05-97 11:56p
DEMO           <DIR>        06-05-97 11:55p
EXAMPLES       <DIR>        06-05-97 11:55p
FAQ            <DIR>        06-05-97 11:56p
GNU            <DIR>        06-05-97 11:56p
INCLUDE        <DIR>        06-05-97 11:55p
INFO           <DIR>        06-05-97 11:55p
L
ANG           <DIR>        06-05-97 11:56p
LIB            <DIR>        06-05-97 11:55p
MANIFEST       <DIR>        06-05-97 11:55p
OBJ            <DIR>        06-05-97 11:55p
SETUP          <DIR>        06-05-97 11:55p
SRC            <DIR>        06-05-97 11:55p
TESTS          <DIR>        06-05-97 11:55p
TMP            <DIR>        06-05-97 11:55p
TOOLS          <DIR>        06-05-97 11:55p
UTILS          <DIR>        06-05-97 11:56p
ZONEINFO       <DIR>        06-05-97 11:55p
A        EXE        89,690  06-08-97  4:07p
ALLEG21  ZIP       573,189  02-17-97  1:14a
ALLEGRO  H          43,927  06-19-96  7:12p
ALLEGRO  TXT       108,506  06-19-96  9:54p
BNU27B   ZIP     1,712,024  02-17-97 12:23a
BSH1147B ZIP       283,893  02-17-97 12:25a
BSN124B  ZIP       124,141  02-17-97 12:26a
CHANGES  TXT         7,025  06-19-96  9:55p
CSDPMI3B ZIP        40,719  02-17-97  1:10a
DIF271B  ZIP       294,454  02-17-97 12:28a
DIR      LST             0  06-08-97  4:09p
DJ201    TXT           277  11-12-96  2:51a
DJCRX201 ZIP       543,950  02-16-97 11:31p
DJDEV201 ZIP     1,538,295  02-16-97 11:43p
DJGPP    ENV         2,199  10-05-96  7:02p
DJLSR201 ZIP     1,472,671  02-16-97 11:54p
DJTST201 ZIP       231,776  02-16-97 11:55p
ENV      LST           348  06-08-97  4:09p
EX2      CC            791  05-11-96  3:22p
FAQ210B  ZIP       399,350  02-16-97 11:58p
FIL313B  ZIP       922,195  02-17-97 12:35a
FILE_ID  DIZ           530  06-16-96 12:11a
FLX252B  ZIP       116,900  02-17-97 12:36a
GCC2721B ZIP     1,096,967  02-17-97 12:44a
GDB416B  ZIP       520,271  02-17-97 12:48a
GINGER   CC            139  06-07-97  8:48p
GPP2721B ZIP       681,045  02-17-97 12:53a
LGP271B  ZIP       638,706  02-17-97 12:58a
MAK375B  ZIP       209,185  02-17-97  1:00a
MAKEFILE             2,737  11-10-96  9:39a
README   1ST        10,352  02-16-97 11:58p
README   TXT        25,481  06-19-96  9:58p
RHIDE11S ZIP     1,471,331  02-17-97 12:09a
TXI390B  ZIP       438,425  02-17-97  1:03a
        34 file(s)     13,601,489 bytes
        23 dir(s)     311,205,888 bytes free


SET COMMAND

TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
PROMPT=$p$g
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\WINDOWS;C:\WINDOWS\SYSTEM;C:\WINDOWS\COMMA
ND;C:\;C:\DOS;E:\DJGPP\BIN
MIDI=SYNTH:1 MAP:E
SOUND=C:\PROGRA~1\CREATIVE\CTSND
windir=C:\WINDOWS
BLASTER=A220 I5 D1 H5 P330 T6
DJGPP=e:/djgpp/djgpp.env
CMDLINE=gcc -v ex1.c

AND LAST BUT NOT LEAST>>>>>


gcc -v ex1.c

Reading specs from e:/djgpp/lib\specs
gcc version 2.7.2.1
 e:/djgpp/bin\cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7
-Dunix -
Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__
-D__GO32__
-D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32
-D__MSD
OS -D__DJGPP=2 -D__DJGPP_MINOR=1 ex1.c e:/djgpp/tmp\ccbaaaaa
GNU CPP version 2.7.2.1 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 e:/djgpp/include
 e:/djgpp/contrib/grx20/include
 /usr/local/include
 /usr/local/go32/include
 /usr/local/lib/gcc-lib/go32/2.7.2.1/include
 /usr/include
End of search list.
 e:/djgpp/bin\cc1.exe e:/djgpp/tmp\ccbaaaaa -quiet -dumpbase ex1.c
-version -o e
:/djgpp/tmp\cccaaaaa
GNU C version 2.7.2.1 (80386, BSD syntax) compiled by GNU C version
2.7.2.1.
 e:/djgpp/bin\as.exe -o e:/djgpp/tmp\ccdaaaaa e:/djgpp/tmp\cccaaaaa
 e:/djgpp/bin\ld.exe e:/djgpp/lib\crt0.o -Le:/djgpp/lib
e:/djgpp/tmp\ccdaaaaa -T
djgpp.djl -lgcc -lc -lgcc
e:/djgpp/tmp\ccdaaaaa(.text+0x19):ex1.c: undefined reference to
`allegro_init'
e:/djgpp/tmp\ccdaaaaa(.text+0x1e):ex1.c: undefined reference to
`install_keyboar
d'
e:/djgpp/tmp\ccdaaaaa(.text+0x33):ex1.c: undefined reference to
`set_gfx_mode'
e:/djgpp/tmp\ccdaaaaa(.text+0x3b):ex1.c: undefined reference to
`desktop_pallete
'
e:/djgpp/tmp\ccdaaaaa(.text+0x40):ex1.c: undefined reference to
`set_pallete'
e:/djgpp/tmp\ccdaaaaa(.text+0x4e):ex1.c: undefined reference to
`gfx_driver'
e:/djgpp/tmp\ccdaaaaa(.text+0x57):ex1.c: undefined reference to
`gfx_driver'
e:/djgpp/tmp\ccdaaaaa(.text+0x79):ex1.c: undefined reference to
`gfx_driver'
e:/djgpp/tmp\ccdaaaaa(.text+0x82):ex1.c: undefined reference to
`gfx_driver'
e:/djgpp/tmp\ccdaaaaa(.text+0xa9):ex1.c: undefined reference to `font'
e:/djgpp/tmp\ccdaaaaa(.text+0xaf):ex1.c: undefined reference to `screen'
e:/djgpp/tmp\ccdaaaaa(.text+0xb5):ex1.c: undefined reference to
`textout_centre'

e:/djgpp/tmp\ccdaaaaa(.text+0xbd):ex1.c: undefined reference to
`readkey'



And ex1.c....


#include <stdlib.h>
#include <stdio.h>

#include "allegro.h"


void main()
{
                                                                    
   /* you should always do this at the start of Allegro programs
*/           
  
allegro_init();                                                            
                                                                            
   /* set up the keyboard handler
*/                                        
  
install_keyboard();                                                      
   /* set VGA graphics mode 13h (sized 320x200)
*/                           
   set_gfx_mode(GFX_VGA, 320, 200, 0,
0);                                    
                                                                             
   /* set the color pallete
*/                                               
  
set_pallete(desktop_pallete);                                             
                                                                             
   /* write some text to the screen
*/                                       
   textout_centre(screen, font, "Hello, world!", SCREEN_W/2, SCREEN_H/2,
255);
                                                                               
/* wait for a keypress */                                              
readkey();                                                                                                                                     
exit(0);                                                        

}



Alright...that's it...if you need more...lemme know...;)


JAke ...

- Raw text -


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