This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: multiple defintions error


On Mon, Sep 25, 2000 at 04:17:49PM +0800, Atif Shahab wrote:
> a.h contains some general inline funtions that I would like to be use
> in b.c and c.c.  However when I do that the linker complains of multiple
> defintions.
... 
> Is there a neater way of doing this?
Declare such functions as 'static'.

Jan Dvorak <johnydog@go.cz>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]