Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Visual Studio generator #9

Open
ZeCroque opened this issue Nov 13, 2024 · 0 comments
Open

Support for Visual Studio generator #9

ZeCroque opened this issue Nov 13, 2024 · 0 comments

Comments

@ZeCroque
Copy link

Hi!
First of all, thanks for your work ! It's really useful and appreciated :)
That said, I'm currently struggling to integrate this template in my workflow since I'm using VS for my job and I feel like I'd be wasting my time learning how to debug with other tools (I guess you're using VSC and some dedicated plugins ?). I managed to generate a .sln by modifying the CMakePresets.json and it partially works : I can compile the dll but only in release mode. When compiling in debug mode I got an error about _ITERATOR_DEBUG_LEVEL being mismatched between my project and the linked spdlog lib. I tried to add _ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH as a compile definition in my project but then the error shows up when linking spdlog to the CommonLibSF lib.
After some investigation, I realized that CommonLibSF requires the iterator to be set to 0, and it's enforced with static_assert in the sources. That's an unusual behavior in debug mode of course but I understand that the offsets would be wrong otherwise. And of course spdlog sets it to 2 in its debug lib as it should normally be.
Do you know any workaround to this issue ? Would you consider adding VS support to the template ?
Kind regards,
ZeCroque

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant