Download

Issue compiling plugins for Android. __declspec

Hello,

I’m trying to compile for android and I’m getting:


error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes

Comping from the PLUGINNAME_API declarations, which is defined as DLLIMPORT. I feel like I must be missing something obvious? I would expect the DLLIMPORT macro to be empty for android or using the visibility specification instead of __declspec.

Anyone have any ideas whats going on with this? I’ve checked that no where in the plugin is DLLIMPORT being overwritten.

Thanks,
Andrew.

That happened to me when I copied source files from a project and passed them to a new project. But it lacked necessary things to compile.