_warning: '__cdecl' only applies to function types; type here is 'int' [-Wignored-attributes]

Hello, I’m a newbie of clang and c++,
I have a library that compiles fine with clang 64bit (llvm4), but with clang 32 bit I get many errors all related with _cdecl exports (_warning: ‘__cdecl’ only applies to function types; type here is ‘int’ [-Wignored-attributes] ),
how to solve it and build static objects with all the cdecl exports?
Thank you
R.

This isn’t enough information to figure out what the problem is. Do you have a code sample you can share? Try pre-processing the source file and look at the lines referenced in the error message. It may be that __cdecl is conditionally defined in a macro, and that macro is in a position that clang doesn’t recognize but MSVC does.