Follow-up Comment #1, patch #6916 (project weechat):

Also, there is a problem in src/plugin/scripts/weechat-perl-api.c.
Every function is defined like this "static XS(function_name)",
XS being a macro returning -on cygwin-:
__declspec(dllexport) void functionName(pTHX_ CV* cv)

It seems that on windows, you can't export a static function, so every
function definition trigger an error:
../../../../../weechat-git/src/plugins/scripts/perl/weechat-perl-api.c:69:
error: external linkage required for symbol 'functionName' because of
'dllexport' attribute.

I fixed this by removing "static" on every fonction and it seems to work, but
there is probably a reason why all those functions are declared as static so i
didn't included that in my patch.
A dev should look into it.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6916>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/



_______________________________________________
Weechat-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/weechat-dev

Reply via email to