Menu

#197 _STLP_USE_MFC not working with msvc8 and msvc9

5.2
open
nobody
None
5
2008-12-10
2008-11-26
No

\ATLMFC\INCLUDE\afx.h(24) : fatal 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]

after defining _AFXDLL this error doesn't show up but there is a new one:

\ATLMFC\INCLUDE\afx.h(15) : fatal error C1189: #error : MFC requires C++ compilation (use a .cpp suffix)

Discussion

  • Petr Ovtchenkov

    Petr Ovtchenkov - 2008-11-26
    • priority: 5 --> 1
    • status: open --> open-invalid
     
  • Anonymous

    Anonymous - 2008-12-10
    • labels: 771356 -->
    • priority: 1 --> 5
    • status: open-invalid --> open
     
  • Anonymous

    Anonymous - 2008-12-10

    OS: Windows XP and Windows Vista x64
    Compiler: msvc8 and msvc9
    STLPort: 5.2.0 and 5.2.1

    uncomment "#define _STLP_USE_MFC 1" in user_config.h
    configure msvc9
    nmake clean install

    build fails with:
    \ATLMFC\INCLUDE\afx.h(24) : fatal 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]

    after defining _AFXDLL this error doesn't show up but there is a new one:

    \ATLMFC\INCLUDE\afx.h(15) : fatal error C1189: #error : MFC requires C++
    compilation (use a .cpp suffix)

     

Log in to post a comment.