Date: Tue, 27 Feb 1996 08:00:13 +0200 (IST) From: Eli Zaretskii To: Bailey Brown Cc: djgpp AT delorie DOT com Subject: Re: unresolved symbols (djgpp_last_dtor, etc.) In-Reply-To: <4gs4ih$7gn@guysmiley.blarg.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.)