Issue with dllexport/dllimport inline function
LIU Hao
lh_mouse@126.com
Tue Oct 11 13:28:34 GMT 2022
在 2022/10/11 21:10, xclaesse@gmail.com 写道:
> Le mardi 11 octobre 2022 à 13:00 +0800, LIU Hao a écrit :
>> you may try
>>
>> ```
>> __attribute__((__gnu_inline__))
>> extern inline
>> int g_strcmp0(const char*, const char*)
>> { ...
>> ```
>
> Thanks, I gave that a try but I get many: multiple definition of
> `g_strcmp0'. But at least the warning about dllimport is now gone.
>
Did you have any declarations that had no `__gnu_inline__`? GNU inline functions are supposed to be
emitted out of line, even when its address is taken.
--
Best regards,
LIU Hao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20221011/5c51b4b0/attachment.sig>
More information about the Gcc
mailing list