mans
mans

Reputation: 18218

linker error when compiling a project written with QT

I have a project which was written by somebody else. It is based on QT.

I downloaded QT and compiled it with VS 2012.

Now I am compiling my application with VS2012 and getting this linker error:

Error   215 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in aboutdialog.obj ProjectPath\qtmaind.lib

What is the problem and how can I fix it?

Upvotes: 0

Views: 351

Answers (1)

danielschemmel
danielschemmel

Reputation: 11126

The linker complains that the version of the Microsoft compiler used to compile one compilation unit (aboutdialog.obj) is different from that of your library (ProjectPath\qtmaind.lib).

MSVC 1600 is included in Visual Studio 2010, while MSVC 1700 is included in Visual Studio 2012.

It seems that your attempt to compile everything with VS2012 was not quite exhaustive.

Upvotes: 1

Related Questions