This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Inlining from another source file
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Ami Chayun <amic at aftershock dot co dot il>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 1 Oct 2011 16:20:23 +0100
- Subject: Re: Inlining from another source file
- References: <a67853de3c6b5230996ded9f76e14729@aftershock.co.il>
On 1 October 2011 15:50, Ami Chayun wrote:
>
> What is the proper way to make GCC inline the function?
As it says on the page you linked to:
"The way to use it is to put a function definition in a header file
with these keywords, and put another copy of the definition (lacking
inline and extern) in a library file."