Re: [protobuf] Linker Errors and stdcall vs cdecl calling conventions (VC++ 2008)

2011-03-24 Thread Kenton Varda
We never actually chose to use cdecl; it was simply the default used by MSVC. This whole idea that the programmer should have to choose between calling conventions is a bit strange and inconvenient. The LIBPROTOBUF_EXPORT annotations are annoying enough; I hope we don't have to litter our code

[protobuf] Linker Errors and stdcall vs cdecl calling conventions (VC++ 2008)

2011-03-15 Thread Kostya Y
Hello It seems like the calling convention used in libprotobuf's vc project is cdecl while the Microsoft's preferred way (or the default one) is stdcall. Is there a reason why cdecl was chosen? I am getting linker errors as the functions are not strictly defined as cdelc so the linker assumes