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

Add possibility to remove debug asserts from the release build #201

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

AenBleidd
Copy link
Contributor

Signed-off-by: Vitalii Koshura lestat.de.lionkur@gmail.com

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
@xleclercq
Copy link
Member

I wasn't familiar with this wxDEBUG_LEVEL macro but looking at the documentation it impacts wxASSERT, wxFAIL and wxCHECK, which are not used in wxCharts (but probably should be at some point).
I guess I'm missing some info, can you explain what this fixes? Thanks.

@AenBleidd
Copy link
Contributor Author

@xleclercq, this PR fixes an issue when wxWidgets library is built with wxDEBUG_LEVEL=0 (that means no debug asserts) but when wxCharts using it without providing this flag (and by default in wx/debug.h this macro is not defined that enables debug asserts) that leads to linking issues similar to this (showing just the frrst one for example, the others are the same:

wxtimeserieschart.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl wxOnAssert(char const *,int,char const *,char const *,char const *)" (__imp_?wxOnAssert@@YAXPEBDH000@Z)

@xleclercq
Copy link
Member

Thanks for explaining. Merged!

@AenBleidd AenBleidd deleted the vko_fix_release_build branch June 15, 2022 12:29
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

Successfully merging this pull request may close these issues.

2 participants