Mail Archives: djgpp-workers/1997/12/15/03:34:12
On Sun, 14 Dec 1997, DJ Delorie wrote:
> I was thinking of two hacks:
>
> 1. Modify ld to print "You probably should use gxx, or link with
> -lstdcxx" if it detects that "cout" or "cin" are one of the undefined
> symbols.
>
> 2. If cpp can't find stdio.h, verify the djgpp environment variable
> points to a real file, and mention that djdev*.zip should be
> installed.
That's okay, but if gcc could be told via lib/specs to automatically
scan libiostreams and libstdcxx for C++ programs, it would solve the
problem more cleanly in the case where they at least knew to give
their sources the right extensions. Many DOS-rooted people clearly
expect the C++ libraries to be scanned automatically for them. Doing
this for the non-LGPL'ed libraries shouldn't harm anybody.
It seems that something like %{.cc: -lstdcxx -liostream} (and the same
for other C++ suffixes) in the "*link_command:" section should do the
job.
- Raw text -