Jump to content

  • Log In with Google      Sign In   
  • Create Account


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Shaquil   Members   -  Reputation: 815

Like
0Likes
Like

Posted 01 November 2012 - 08:18 AM

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?

Sponsor:

#2 HPSC   Members   -  Reputation: 142

Like
3Likes
Like

Posted 01 November 2012 - 11:46 AM

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.

#3 Shaquil   Members   -  Reputation: 815

Like
0Likes
Like

Posted 01 November 2012 - 01:01 PM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS