B
Bilgehan.Balban
Hi,
My observation was that a function with `inline' qualifier has file
scope in C++ and it's symbol is not exported. Contrary to this, in C an
`inline' function symbol is exported, unless it also has `static' or
`extern' qualifiers.
How could I achieve the C behaviour in C++, in that an inline function
symbol is exported? I see that one way to do it is declaring the
function in a class definition in a header file so that all files
including it get the copy of the function. Is there no way to share in
the symbol level? I think it is useful because one may want to have a
library of functions that are used inline, whenever they're referenced.
Thanks,
Bahadir
My observation was that a function with `inline' qualifier has file
scope in C++ and it's symbol is not exported. Contrary to this, in C an
`inline' function symbol is exported, unless it also has `static' or
`extern' qualifiers.
How could I achieve the C behaviour in C++, in that an inline function
symbol is exported? I see that one way to do it is declaring the
function in a class definition in a header file so that all files
including it get the copy of the function. Is there no way to share in
the symbol level? I think it is useful because one may want to have a
library of functions that are used inline, whenever they're referenced.
Thanks,
Bahadir