www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/27/01:11:27

Date: Tue, 27 Feb 1996 08:00:13 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Bailey Brown <bailey AT blarg DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: unresolved symbols (djgpp_last_dtor, etc.)
In-Reply-To: <4gs4ih$7gn@guysmiley.blarg.net>
Message-Id: <Pine.SUN.3.91.960227075459.8780A-100000@is>
Mime-Version: 1.0

On Mon, 26 Feb 1996, Bailey Brown wrote:

> I have to put djgpp.lnk on the gcc command line for it to link.  This
> is only a minor inconvenience, but is there a way to make it link in
> djgpp.lnk automatically?  I can't find djgpp.lnk in djgpp.env.

`djgpp.lnk' is mentioned in `lib/specs' (it has a -Tdjgpp.lnk option).  
Make sure you have lib/specs with this section in it:

*link_command:
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \
        %{r} %{s} %{t} %{u*} %{x} %{z}\
        %{!A:%{!nostartfiles:%{!nostdlib:%S}}} %{static:}\
        %{L*} %D %{T*} %o -Tdjgpp.lnk\
        %{!nostdlib:-lgcc %L -lgcc %{!A:%E}}}}}}}
%{!c:%{!M:%{!MM:%{!E:%{!S:stubify %{v} %{o*:%*} %{!o*:a.out}}}}}}

If your lib/specs seems OK, please add -v to the gcc command line and 
post everything it prints when linking.  (You might need to use `redir' 
to redirect the output to a file; `redir' is described in `utils.inf' 
Info file in your info/ subdirectory.)

- Raw text -


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