Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
afx.h:24: error: C1189: #error: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
Qt Creator 4.13.2(based on Qt 5.15.1)
I have mfc dependent visual studio 2015 generated static lib file which I am trying to use in QT creator. I have given all the dependency and include path in QT.
I have tried all the options in the link below but it's not working for me.
Please share your suggestions.
@Pradeep2121 Did you do what was suggested in the thread you linked?
What Qt version do you use (what you posted is the Qt version used by QtCreator).
Do you use Mcrosoft C++ compiler?
@jsulm Yes, I have tried out the things provided in the link.
I am using Visual studio 2015 for creating a static library. This library will be used by the UI application created using QT
@Pradeep2121 You did not answer any of my questions.
I already told you that I'm not interested in knowing which Qt version was used to build QtCreator, so please don't post "About Qt Creator" dialog screen-shot. Tell us which Qt version you use to build your project.
And please tell us whether you're using SAME Visual Studio compiler to compile your Qt project.
And again: did you try what was suggested in the link you posted?!
@jsulm Sorry, I am new to QT so was not able to answer you correctly. My apologies. I think my QT version use to build my project is "Qt 5.9.9 MSVC2015 32bit" and "Qt 5.9.9 MSVC2015 64bit".
@Pradeep2121 OK. That should match. Please check the link you posted - the was a suggestion what to do (the error message already suggests what to do).