From: Aaron W. L. <aar...@aa...> - 2004-09-11 01:09:38
|
Danny Smith wrote: > Its not so much the dllimport but the extern that it implies that causes > warnings (harmless in this case because there are no intervening refs to > the extern symbol) > > __declspec(dllimport) void foo(void); > static inline void foo(void) {} Well, I've noticed that MSVC 7.1 does not support inline in C: only __inline, which has C++ semantics, not C semantics, so they aren't setting a useful example. However, would it make sense for GCC to treat dllimport inline functions as having implicit internal linkage? What is the 'right way' to make this apparently legitimate usage work? Aaron W. LaFramboise |