www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/14/14:12:49

To: djgpp AT delorie DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: newbie:compile/link errors
Message-ID: <19990814.074153.10279.0.vmccar@juno.com>
References: <7ov3ji$8fa$1 AT fenix DOT maxitel DOT pt>
X-Mailer: Juno 1.49
X-Juno-Line-Breaks: 0,3,7,9-12,15-23,25-73
From: Vince McCarthy <vmccar AT juno DOT com>
Date: Sat, 14 Aug 1999 10:41:44 EDT
Reply-To: djgpp AT delorie DOT com

Hi Paulo
     I have the GNAT ADA Ver 3.10 program and It uses the GCC Ver 2.7.2.1
and not the latest GCC Ver. I tried to use the latest DJGPP Ver 2.02 and
the program will not
work. The ver of DJGPP for GNAT Ver 3.10 can be found at
ftp.seas.gwu.edu/pub/ez2load. Also You need to put all the DJGPP files
for the GNAT pgm in the GNAT directories, and make a self-contained
program for GNAT. 
     On the enclosed DJGPP.ENV for the GNAT Pgm make the following
changes:
    Change the line DJDIR=%:/GNAT310% and add the line 
     [rhide]
     RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx
     I think it is a good idea to make a boot disk just to run the GNAT
pgm, I have had to do this to prevent conflicts between the different
versions of DJGPP and GCC.
  In the Boot disk Autoexec.bat file put the following:
  SET DJGPP=D:\GNAT310\DJGPP.ENV 
  SET TMPDIR=d:\gnat310\tmp
  ADA_INCLUDE_PATH=d:\gnat310\lib\include
  ADA_OBJECTS_PATH=D:\GNAT310\lib\adalib  
  
  Hope this helps 

On Thu, 12 Aug 1999 19:25:52 +0100 "Paulo Cruz"
<scruz_paulo AT mail DOT teleweb DOT pt> writes:
>Hi,
>Having recently downloaded DJGPP+GCC+RHIDE,
>I'd had no problems so far compiling and linking and
>executing C programs.
>A couple of days ago I downloaded GNAT, an Ada
>compiler which requires DJGPP as well. I added the
>new environment directives to autoexec.bat, keeping the
>previous  SET DJGPP=D:\DJGPP\DJGPP.ENV,
>instead of SET=D:\GNAT310\DJGPP.ENV
>The relevant environment settings being:
>SET DJGPP=D:\DJGPP\DJGPP.ENV
>set PATH=D:\DJGPP\BIN;%PATH%
>set PATH=d:\gnat310\bin;%path%
>set PATH=d:\gnat310\gw-gnat;%path%
>set TMPDIR=d:\gnat310\tmp
>REM SET DJGPP=D:\GNAT310\DJGPP.ENV
>set ADA_INCLUDE_PATH=d:\gnat310\adainc
>set ADA_OBJECTS_PATH=d:\gnat310\lib\adalib
>set GW-GNAT=d:\gnat310\gw-gnat
>
>After this I lost the ability to compile/link C sources ("ld.exe: 
>annot
>open
>-lgcc). Then I managed to overcome the problem, by renaming
> GCC.EXE which is under \GNAT310\BIN, so that the only GCC which
> comes to attention is the one under \DJGPP\BIN. After this, I 
>recovered
> the ability to deal with C stuff.
>
>As for ADA, I'm able to 'gcompile' but as for the 'glink' neither the
> GCC.EXE renaming trick, nor the similar LD.EXE renaming trick
> seems to be helping, the error message being the same as above:
>("ld.exe: cannot open -lgcc).
>
>hen I cd to where libgcc.a is, i get: undefined reference to 
>'_register_
>frame_info'.
>
>It seems that DJGPP is conflicting with DJGPP. What sould I do in
>order to have executables made out of ADA ?
>
>Thanks a lot
>PauloCruz
>
>
>
>
>

___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.

- Raw text -


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