Problems building with extern inline functions in winebase.h
hch at caldera.de
Thu Aug 16 10:11:26 CDT 2001
In article <20010816102721.A10210 at cox.rr.com> you wrote:
> A couple days ago a number of inline functions were put into winebase.h.
> Since then I have been unable to build, using gcc 2.96-81 (RedHat). Apparently
> this version of gcc thinks that because there is an extern prefixing the
> inline, even though the function does in fact have a body, that the
> function really is external. Removing the extern, just having inline as
> one would do in C++, does not appear to work correctly either, and causes
> the function to appear as a exported symbol in all the object files that
> header gets included with, thus resulting in multiple definitions.
> I'm not sure what the correct solution would be, other than using the
> older function call method for this version of gcc. Perhaps I'm just
> missing some variant on the use of inline?
Try 'static inline' - it's even defined in C99.
Whip me. Beat me. Make me maintain AIX.
More information about the wine-devel