Struggling with VC++2012 Linker: mismatch detected for '_MSC_VER'

Started by
1 comment, last by Liuqahs15 11 years, 5 months ago
I really hate to do this, but I've been trying to run some simple Luabind code in Visual Studio since yesterday, and all the googling in the world has been of no help to me at all. I really need some advice on this linker error I'm getting from Visual Studio 2012 when I try to build:


1> Unknown compiler version - please run the configure tests and report the results
1>luabind.Debug.lib(scope.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in Source.obj
1>luabind.Debug.lib(open.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in Source.obj
1>luabind.Debug.lib(function.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in Source.obj
1>luabind.Debug.lib(exception_handler.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in Source.obj
1>luabind.Debug.lib(class_rep.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in Source.obj
1>luabind.Debug.lib(inheritance.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in Source.obj
1>luabind.Debug.lib(create_class.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in Source.obj
1>luabind.Debug.lib(class_registry.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in Source.obj
1>luabind.Debug.lib(object_rep.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in Source.obj
1>LINK : fatal error LNK1104: cannot open file 'lua51.lib'


So I'll probably inevitably have to edit these .obj files. However, again, all the googling in the world has not shown me what application to use to do that. I know an alternate solution might be to just code it in Visual Studio 2010 until better support for 2012 is released, but I'm having nightmare issues with 2010. Anytime I even run it, I get trouble, and I can't uninstall it and reinstall it because it won't uninstall.

Besides, there's a luabind demo someone wrote in visual studio that I've been able to compile in 2012 perfectly fine, so it's possible.

Does anyone know what the remedy for this sort of problem is? What am I doing wrong?
Advertisement
I looks like you are linking the vs2010 lib. You say you built the other one fine, when using that demo that is for 2010 in 2012 are the compiler settings still using the 2010 compiler?

Project properties->General->Platform toolset try setting it to v100 (use the 2010 tools) and see if it works.
I checked that, and it was already set to v100. I think I'm done burning away precious time on this. Thanks for trying, though.

This topic is closed to new replies.

Advertisement