[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: |
|
||||||||
| 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 |
| Comment by Andrew Morrow (Inactive) [ 16/Apr/14 ] |
|
|