Opened 15 years ago
Closed 12 years ago
#1470 closed Patches (fixed)
Boost.Thread: Compilation errors with non-__cdecl calling convention
Reported by: | Francois Barel | Owned by: | Anthony Williams |
---|---|---|---|
Milestone: | To Be Determined | Component: | thread |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | thread __cdecl | Cc: |
Description
Hi,
On Win32, Boost.Thread currently (r41287) doesn't compile when the compiler's default calling convention is not __cdecl
(e.g. with option /Gz under MSVC, which defaults functions to __stdcall
if no other calling convention is specified).
This is because some function pointers are (correctly) explicitely declared __cdecl
, but are then assigned with the addresses of functions with no explicit calling convention specified -- which is incorrect. Those functions should be explicitely __cdecl
as well.
I suggest applying the attached patch (in trunk/
) to fix that behavior.
Cheers, Francois
Attachments (1)
Change History (3)
by , 15 years ago
Attachment: | BTL-calling-conv.diff added |
---|
comment:1 by , 12 years ago
Type: | Bugs → Patches |
---|
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed on trunk