On 2017/4/4 1:19, David Grayson wrote:
> What you say matches what I got from my experiments, but it's odd that it
> doesn't match the GCC documentation I linked to, which says:
>
>   If you specify both inline and extern in the function definition, then
> the definition is used only for inlining. In no case is the function
> compiled on its own, not even if you refer to its address explicitly. Such
> an address becomes an external reference, as if you had only declared the
> function, and had not defined it.
>
> So it's saying that the TUs might have references to an external function
> but they will not contain globally-visible definitions that could cause a
> multiple definition error.  There must be something I am missing, but it's
> OK.
Note that 'The remainder of this section is specific to GNU C90 
inlining' just prior to this paragraph in 
<https://gcc.gnu.org/onlinedocs/gcc/Inline.html>.

-- 
Best regards,
LH_Mouse


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to