CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Multi-threaded Debug

  1. #1
    Join Date
    Jan 2009
    Posts
    335

    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.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,723

    Re: Multi-threaded Debug

    Could this thread help?
    Victor Nijegorodov

  3. #3
    Join Date
    Jan 2009
    Posts
    335

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)