Sign in to follow this  

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

This topic is 1902 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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:

[code]
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'
[/code]

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 [url="http://blog.nuclex-games.com/tutorials/cxx/luabind-introduction/"]luabind demo someone wrote in visual studio[/url] 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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this