Fatal error C1189

Posted on 2006-04-18
Last Modified: 2013-11-20
Hi, I have an annoying error, a simple one I think, but I can't find it on EE. I just can't compile and it says this:

------ Build started: Project: Calc_Marco, Configuration: Debug Win32 ------
c:\program files\microsoft visual studio 8\vc\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]

What does that means?


Question by:NaturalBornCamper
    LVL 43

    Accepted Solution

    Try doing a build using the shared MFC libraries.  (I guess you have the option to use static libraries selected).

    Project - properties.
    On properties window
    Configuration Properties - General:  Use of MFC  <---- here you should have 'use MFC in a shared dll'
    LVL 1

    Author Comment


    That's exactly what it was!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Title # Comments Views Activity
    How to create frequencies of a variable from SAS dataset? 10 111
    iSeries FTP Exit Program 8 99
    sum28 challenge 31 82
    post4 challenge 28 70
    In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
    Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now