Hi.

I have built libjson on VS 2010. And I have had no problems. I have also set the optional compile time value of /MT to enable multi threading cause my current project is built with that option.
Now everything seems to be fine, I can build my project with libjson linked in, and it compiles, until I try to use any functions from libjson. Then I get the following errors:

1>  statLibJson.lib(libjson.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
1>statLibJson.lib(libjson.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in config.obj
1>statLibJson.lib(JSONChildren.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in config.obj
1>statLibJson.lib(JSONWorker.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in config.obj
1>statLibJson.lib(JSONValidator.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in config.obj
1>statLibJson.lib(internalJSONNode.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in config.obj
1>statLibJson.lib(JSONWriter.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in config.obj
1>statLibJson.lib(JSONIterators.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in config.obj
1>statLibJson.lib(JSONNode.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in config.obj
1>statLibJson.lib(JSONStream.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in config.obj
1>statLibJson.lib(JSONDebug.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in config.obj
1>statLibJson.lib(JSON_Base64.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in config.obj

I have looked up the error and found the following entry on stackoverflow.com:
http://stackoverflow.com/questions/4917592/compiling-and-using-jsoncpp-on-visual-studio10-with-boost

It seems to suggest that its and issue with the setting of /MT, however I have rebuilt libjson with the value as specified and I still get the same issue. The code and all the options are the standard as provided in 7.3.1. I have not modified anything except removing the deprecated option cause of a compile issue in Visual Studio 2010.

Does anyone have any idea what I can try, anything at all will be helpful.

Thanks
/Cole