Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Fix problem compiling Mantid in Debug on VS2022#70

Merged
martyngigg merged 2 commits intomainfrom
AddSupportForVS2022
Mar 24, 2022
Merged

Fix problem compiling Mantid in Debug on VS2022#70
martyngigg merged 2 commits intomainfrom
AddSupportForVS2022

Conversation

@DannyHindson
Copy link
Contributor

@DannyHindson DannyHindson commented Mar 17, 2022

This resolves a problem generating a debug build of Mantid in VS2022. The build failed with errors like:

error C2039: '_invalid_parameter': is not a member of '`global namespace''
error C3861: '_invalid_parameter': identifier not found

Fix is based on similar problem PyBind were having:
pybind/pybind11#3497

The updated file also exists in build-scripts\extras\python\wrappython.h. Not sure if I should also update this?

@DannyHindson DannyHindson marked this pull request as ready for review March 17, 2022 14:54
@DannyHindson DannyHindson changed the title Import crtdefs.h before undefining _DEBUG Import crtdefs.h before undefining _DEBUGx Mar 17, 2022
@DannyHindson DannyHindson changed the title Import crtdefs.h before undefining _DEBUGx Fix problem compiling Mantid in Debug on VS2022 Mar 17, 2022
This resolves a problem generating a debug build of Mantid in VS2022
Fix based on approach taken by PyBind to similar issue
To allow debug build to work in VS2022
@martyngigg martyngigg self-assigned this Mar 23, 2022
@martyngigg martyngigg merged commit 8afb4e2 into main Mar 24, 2022
@martyngigg martyngigg deleted the AddSupportForVS2022 branch March 24, 2022 16:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants