lundi 1 février 2016

Resolving errors in unit testing of a project which uses thrift c++ in visual studio

I uses thrift in Release mode. It works fine. After I added unit testing project using native testing which is available in Visual Studio under unit testing, it complaints

error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in stdafx.obj   E:\..\UnitTest1\libboost_thread-vc120-mt-gd-1_59.lib(thread.obj)    UnitTest1

I know this error rises usually due to the build level variation in thrift project and our project. But why now it comes? What's wrong with it?

Remember before added testing project it works fine.

Aucun commentaire:

Enregistrer un commentaire