[CXX-112] Provide a SConstruct option to specify the default windows calling convention Created: 28/May/13  Updated: 16/Apr/14  Resolved: 16/Apr/14

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: legacy-0.8.0

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: build-system-cleanup, cxxmove, legacy-cxx, windows
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

32-bit Windows


Issue Links:
Duplicate
is duplicated by CXX-81 On Windows, MONGO_API functions shoul... Closed

 Description   

We have had several support cases with very non-obvious linking errors due to someone building the mongoclient library with its default cdecl calling convention, but then attempting to use it in a project with a different default calling convention, which is doomed to failure:

http://msdn.microsoft.com/en-us/library/46t77ak2(v=vs.110).aspx

We should provide a build system switch for the top level SConstruct to control what the default calling convention should be.

Note that this only affects 32 bit windows: 64 bit windows has only one calling convention.



 Comments   
Comment by Andrew Morrow (Inactive) [ 16/Apr/14 ]

Closing as a rough dup of CXX-81

Comment by Andrew Morrow (Inactive) [ 16/Apr/14 ]

CXX-81 is a better way to handle this.

Generated at Wed Feb 07 21:58:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.