This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

__attribute((stdcall)) on member functions of C++ classes...


Hi there...

Why does G++ ignore the __attribute__((stdcall)) in the following:

#include <iostream.h>

class theclass
{
 public:

void __attribute__((stdcall)) testfunc(int a, int b);
};

void __attribute__((stdcall)) theclass::testfunc(int a, int b)
{
 cout << a << b;
}

main()
{
 theclass a;
a.testfunc(0,1);
}

Rather than actually using the stdcall calling convention, GCC just
issues a warning: 'stdcall' attribute directive ignored.

My question is... why? What's stopping class member functions from using
the stdcall calling convention?

:-)
dph-man

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]