• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8981
  • Last Modified:

Fatal error C1189

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
NaturalBornCamper
Asked:
NaturalBornCamper
1 Solution
 
AndyAinscowFreelance programmer / ConsultantCommented:
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
 
NaturalBornCamperAuthor Commented:
YES!

That's exactly what it was!

thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now