Creator of QT _ITERATOR_DEBUG_LEVEL

I linked my own static lib to my QT Creator project, the library was compiled for both debugging and versioning using VS 2010 Express. My QT Creator project also uses the VS 2010 compiler.

Now in QT Creator, when I try to create a debug version of my project, I get a few _ITERATOR_DEBUG_LEVEL link errors. More interestingly, errors only point to objs that contain some standard libraries, such as iostream and / or math.

When I create the Release version of my QT project, everything is fine, and obviously, if I remove the link to my library, then the debug version is compiled too.

What is the correct way to compile my library so that I can use it in debug mode of QT Creator?

Thank you very much

+4
source share
1 answer

Add the following to your pro file:

CONFIG( debug, debug|release ) { # debug LIBS += -lyour_lib_named } else { # release LIBS += -lyour_lib_name } 
+1
source

Source: https://habr.com/ru/post/1479607/


All Articles