Mail Archives: djgpp/1999/08/12/17:47:27
From: | "Paulo Cruz" <scruz_paulo AT mail DOT teleweb DOT pt>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | newbie:compile/link errors
|
Date: | Thu, 12 Aug 1999 19:25:52 +0100
|
Organization: | Maxitel News Service
|
Message-ID: | <7ov3ji$8fa$1@fenix.maxitel.pt>
|
NNTP-Posting-Host: | p131a234.teleweb.pt
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2014.211
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211
|
Lines: | 46
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
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: cannot
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).
When 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
- Raw text -