?
Solved

Fatal error C1189

Posted on 2006-04-18
2
Medium Priority
?
8,957 Views
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 ------
Compiling...
CCalcDlg.cpp
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?

Thanks,

    -Marco
0
Comment
Question by:NaturalBornCamper
2 Comments
 
LVL 45

Accepted Solution

by:
AndyAinscow earned 200 total points
ID: 16484956
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'
0
 
LVL 1

Author Comment

by:NaturalBornCamper
ID: 16489319
YES!

That's exactly what it was!

thanks
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month17 days, 9 hours left to enroll

831 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