I collect examples of a third-party library under Linux, the g ++ compiler. I get a warning warning: 'cdecl' attribute ignored [-Wattributes] What does this mean and how can I fix it?

  • It is possible a code example where writes? - PaulD
  • Under which platform compile? - PaulD

1 answer 1

This means that g ++ ignored the cdecl declaration (surprise! But that is what the words "'cdecl' attribute ignored" mean. There is nothing wrong with that, which means that in your case, by default, and so the calling convention - cdecl .