문제

My program built in release mode fails on assertions.

How can I setup eclipse to generate a binary which doesn't compute assert() calls?

도움이 되었습니까?

해결책

The solution is simple:

Right click on project, select Properties. Go under C/C++ Build, Settings. Select the Release configuration, then GCC C++ Compiler, Preprocessor. Under Defined symbols (-D) add NDEBUG. This worked for me.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top