This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: multiple defintions error
- To: Atif Shahab <atif at viewinternet dot com dot sg>
- Subject: Re: multiple defintions error
- From: Jan Dvorak <johnydog at go dot cz>
- Date: Mon, 25 Sep 2000 11:58:33 +0200
- Cc: gcc at gcc dot gnu dot org
- Organization: (XNET.cz)
- References: <Pine.LNX.4.21.0009251606250.711-100000@scorpio.office-sg.vi>
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>