Hello, all.
Maurice wrote:
Wosh what a mess !
I agree. I started over, following his directions, and made a completely new install in a new directory. Much better. New all the way around, and the grx package compiled just fine. Thank you, Maurice, for putting together a nice improved grx232, also. The makefile worked beautifully.
I can compile programs that don't use the grx, like a basic "hello, world".
But when I try to compile something that uses grx, I don't succeed. From the command line (and sorry, Frank, but redir simply doesn't work on my system: it creates the file, and puts nothing into it), error messages fly past, telling me I have undefined references to 'GrWhite' and other things defined in grx20. (I issued gpc --automake -o taste.exe taste.pas)
From within RHIDE, the message window shows:
compiling: c:\djgpp\contrib\grx232\pascal\taste.pas ignoring Automake options `'; taste.pas: undefined reference to 'Init_Grx20' ld returned 1 exit status There were some errors
So apparently the compiler isn't finding the necessary grx20 files? But my djgpp.env iss full of them (appended below).
Sorry to give you such a moving target, but I do think I'm quite a bit closer than before.
Toby
--------------------------------------------------- djgpp.env: #= Don't edit this line unless you move djgpp.env outside #= of the djgpp installation directory. If you do move #= it, set DJDIR to the directory you installed DJGPP in. #= DJDIR=%:/>DJGPP%
+USER=dosuser +GROUP=root +TMPDIR=%DJDIR%/tmp +EMU387=%DJDIR%/bin/emu387.dxe +LFN=y +TEXMFMAIN=%DJDIR%/share/texmf +GO32STUB=%DJDIR%/bin/stubify.exe
[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/grx232/include C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/contrib/grx232/include OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc
[gcc] LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx232/lib/dj2
[gpcpp] C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/LANG/PASCAL;%DJDIR%/include;%DJDIR%/CONTRIB/GRX232/include
[gpc] COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx232/lib/dj2
[info] INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info +INFO_COLORS=0x1f.0x31 +INFO_LINES=40
[emacs] INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info
[less] +LESSBINFMT=*k<%%X> +LESSCHARDEF=8bcccbcc12bc5b95.b127.b LESS=-h5$y5$Dd2.0$Du14.0$Ds4.7$Dk9.0$%LESS% +LESSSEPARATOR=/
[ispell] +ISPELL_HOME=%DJDIR%/lib +ISPELL_DICTDIR=%DJDIR%/lib +ISPELL_COLORS=0x1e.0x74 +LINES=40
[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:
[enscript] ENSCRIPT_LIBRARY=%DJDIR%/share/enscript
[bash] PATH=%/>PATH% +CONFIG_SITE=%DJDIR%/share/config.site
[sh] PATH=%/>PATH% +CONFIG_SITE=%DJDIR%/share/config.site
[groff] +GROFF_TMAC_PATH=.;%DJDIR%/share/groff/tmac +GROFF_TYPESETTER=ascii +GROFF_FONT_PATH=.;%DJDIR%/share/groff/font
[eqn] +GROFF_TMAC_PATH=.;%DJDIR%/share/groff/tmac +GROFF_TYPESETTER=ascii
[grodvi] +GROFF_FONT_PATH=.;%DJDIR%/share/groff/font
[grolj4] +GROFF_FONT_PATH=.;%DJDIR%/share/groff/font
[grops] +GROFF_FONT_PATH=.;%DJDIR%/share/groff/font +GROFF_TMPDIR=%DJDIR%/tmp
[grotty] +GROFF_FONT_PATH=.;%DJDIR%/share/groff/font
[indxbib] +GROFF_EIGN=%DJDIR%/share/groff/eign
[lkbib] +REFER=%DJDIR%/share/Ind
[refer] +REFER=%DJDIR%/share/Ind +GROFF_TMPDIR=%TMPDIR%
[troff] +GROFF_TMAC_PATH=.;%DJDIR%/share/groff/tmac +GROFF_TYPESETTER=ascii +GROFF_FONT_PATH=.;%DJDIR%/share/groff/font
[gawk] +AWKPATH=.;%DJDIR%/share/awk
[awk] +AWKPATH=.;%DJDIR%/share/awk
[man] MANPATH=%/>;MANPATH%%DJDIR%/man;%DJDIR%/info +PAGER=%DJDIR%/bin/less.exe
[rhide] RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx RHIDE_TYPED_LIBS_DJGPP.cxx=stdcxx RHIDE_TYPED_LIBS_DJGPP.cpp=stdcxx RHIDE_TYPED_LIBS_DJGPP.f=g2c m
[grep] +GREP_OPTIONS=--directories=skip
[fgrep] +GREP_OPTIONS=--directories=skip
[egrep] +GREP_OPTIONS=--directories=skip
Robert P. Ewing wrote:
But when I try to compile something that uses grx, I don't succeed. From the command line (and sorry, Frank, but redir simply doesn't work on my system: it creates the file, and puts nothing into it), error messages fly past, telling me I have undefined references to 'GrWhite' and other things defined in grx20. (I issued gpc --automake -o taste.exe taste.pas)
gpc --automake -o taste.exe taste.pas -lgrx
This assumes that you have installed `libgrx.a' somewhere in your library path, e.g. `c:/djgpp/lib'. It might be named `libgrx20.a' or `libgrx232.a' on your system.
You can also add a line {$L grx} to your `grx.pas' unit. I did so for mine, and IMHO this should be done when including this unit into the GPC distribution.
Peter