You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 theCMakePresets.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 linkedspdlog
lib. I tried to add_ALLOW_ITERATOR_DEBUG_LEVEL_MISMATCH
as a compile definition in my project but then the error shows up when linkingspdlog
to theCommonLibSF
lib.After some investigation, I realized that
CommonLibSF
requires the iterator to be set to 0, and it's enforced withstatic_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 coursespdlog
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
The text was updated successfully, but these errors were encountered: