delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/15/02:28:50

Date: Wed, 14 Dec 94 21:57:10 EST
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: A DOT APPLEYARD AT fs1 DOT mt DOT umist DOT ac DOT uk
Cc: DJGPP AT SUN DOT SOE DOT CLARKSON DOT EDU
Subject: Re: Which of my Gnu C programs calls which library?
Reply-To: babcock AT cfa DOT harvard DOT edu

> When will there be a precompiler directive, e.g.
> 
>     #needslib m
>     #needslib grx
> 
> so that the program source tells the precompiler tells gcc tells the linker
> which libraries to load?, and thus the programmer would have one less thing
> to remember per program.

This information is the sort of thing that a makefile is supposed to keep
track of, and I think you are better off having it in a mkaefile than in the
source.  Suppose the names of the libraries changed with a future release
of djgpp.  Would you rather make this change in one makefile or 50-100 source
files?

- Raw text -


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