-
March 2nd, 2020, 12:42 PM
#1
Multi-threaded Debug (solved)
I have a SDI MFC test app. I setup this project as /MTd. Compiled and tested, everything is ok. And I included a external library, which is compiled as /MTd. I generated again the settings of the project with CMake to has every external libs and headers file. And when I compiled again the MFC project, tell me this:
Code:
1>MainFrm.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\atlmfc\include\afxver_.h(77): fatal error C1189: #error: Please use the /MD switch for _AFXDLL builds
1>DDD.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\atlmfc\include\afxver_.h(77): fatal error C1189: #error: Please use the /MD switch for _AFXDLL builds
1>DDDDoc.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\atlmfc\include\afxver_.h(77): fatal error C1189: #error: Please use the /MD switch for _AFXDLL builds
1>DDDView.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\atlmfc\include\afxver_.h(77): fatal error C1189: #error: Please use the /MD switch for _AFXDLL builds
1>stdafx.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\atlmfc\include\afxver_.h(77): fatal error C1189: #error: Please use the /MD switch for _AFXDLL builds
1>Generating Code...
1>Done building project "DDD.vcxproj" -- FAILED.
tell me that I should set the project as /MD. But I cannot do this due to external library which, I said before, is already compiled as MT ...
What should I do to solve my problem ?
Last edited by mesajflaviu; March 3rd, 2020 at 02:18 AM.
-
March 2nd, 2020, 04:13 PM
#2
Re: Multi-threaded Debug
Victor Nijegorodov
-
March 3rd, 2020, 02:18 AM
#3
Re: Multi-threaded Debug
Yes, it solved my problem Thank you Victor !!
P.S. Of course, I have seek myself for a solution, and I applied what I've found, but none of them had worked.
Last edited by mesajflaviu; March 4th, 2020 at 03:46 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|