Linking problem on Windows, any ideas ?

Thiago Macieira thiago at kde.org
Sat Aug 20 09:59:21 PDT 2011


On Saturday, 20 de August de 2011 18:43:28 Pontus Carlsson wrote:
> Excellent! Glad it sorted out for you. And I reckon you could've used extern
> "C" instead, stdcall is the C calling convention, fastcall is the C++
> decoration convention. (slightly bad explanation but you get the picture.)
> On Aug 20, 2011 1:16 PM, "rony" <rony at wu.ac.at> wrote:

cdecl is the C calling convention; stdcall is a Windows-specific calling 
convention passing values in registers and having the callee pop the stack. 
The C++ member calling convention is called "thiscall", whereas statics get 
the same calling convention as C functions.

All current C++ compilers implement static and extern "C++" calling like a C 
function, even though the standard doesn't require it.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20110820/b422e672/attachment.pgp>


More information about the dbus mailing list