Project compiling me in dynamic no static
-
wrote on 12 Mar 2017, 21:07 last edited by
-
Hi,
The upload feature of the forum is broken. You should upload your image to an image sharing site and post the link here.
-
wrote on 12 Mar 2017, 21:51 last edited by
-
You are trying to link a library that has been linked to the static version of the Visual Studio runtime with something that is not.
Since you wrote that you built that library yourself, you should do it again but link with the dynamic VS runtime.
-
You are trying to link a library that has been linked to the static version of the Visual Studio runtime with something that is not.
Since you wrote that you built that library yourself, you should do it again but link with the dynamic VS runtime.
wrote on 12 Mar 2017, 22:20 last edited byThis post is deleted! -
wrote on 12 Mar 2017, 22:44 last edited by RIVOPICO 3 Dec 2017, 22:46This post is deleted!
-
wrote on 12 Mar 2017, 22:49 last edited byThis post is deleted!
-
wrote on 12 Mar 2017, 23:21 last edited by
Yeah but i have static build i dont know why takes me dynamic if i put in my projec tthe static build.
-
wrote on 12 Mar 2017, 23:29 last edited by RIVOPICO 3 Dec 2017, 23:33
in other projects i can do static build.
However in the other show me this:
https://i.imgsafe.org/5c2a726da5.jpgWhy? So in other words i am using qt static build and library is static which is the problem-'
-
wrote on 12 Mar 2017, 23:59 last edited by
I think the problem is the library only works like dynamic library
-
On Windows you have 4 possibilities:
- Dynamic build with dynamic runtime
- Dynamic build with static runtime
- Static build with dynamic runtime
- Static build with static runtime
You are using number 4 for your library while Qt using number 1. You can mix and match static and dynamic libraries as long as you are linking to the same runtime type.
In your case, what you have to do is use number 3 for your library.
1/11