0

log4cppLIB.lib(Appender.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in HtmlHelper.obj

I have got this error message while trying to compile my program with log4cpp

After downloading the library, I unzipped, created an env variable then referenced to its 'include' folder in my project settings, so headers files are inclusive without error. Next, I recompiled the project files in msvc10 and retrieved the lib and the dll files.

Then in my project I included #pragma comment (lib,"path to the lib file")

in my main program (my application is a console one)

Compiling this program gives me the above link errors (I post only one as above but there are actually many - all such link errors)

I think I am wrong about my project settings and installation of the lob4cpp library (their document is out of date)

1

1 Answer 1

1

This error ('_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' ) indicates that your mixing debug and release built objects, make sure to compile the log4cpp lib in Debug mode for Debug project and Release mode for Release project.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.