586,137 active members*
3,302 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2015
    Posts
    20

    help needed with C++ library

    I am having some difficulties adding the libraries to my QT creator.
    As you know QT is a GUI tool that uses C++ compiler.
    I have successfully added the lib file and dll to the solution.
    but I get the following error :


    C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afx.h:24: 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]


    any idea?

  2. #2
    Join Date
    May 2006
    Posts
    4045

    Re: help needed with C++ library

    Hi Jimmy,

    It isn't clear to me what you are trying to do. It would be helpful if you included more information in your question. I'm not familiar with QT Creator. Have you tried doing what the error message suggests? Have you tried changing the build options to use the MFC shared dll versions?

    Regards
    TK
    http://dynomotion.com

  3. #3
    Join Date
    Oct 2013
    Posts
    15

    Re: help needed with C++ library

    Many years since I used MFC.

    But It sounds like the MFC dll file is the wrong type/version.

    Can you set the C++ project configuration: Set MFC to "Shared DLL" or to "Static library"? (do for both release and debug versions).

    Perhaps: Try removing the /MD[d] specifier from the compile commands.

    Google "requires MFC shared dll version"

    https://social.msdn.microsoft.com/Fo...orum=vcgeneral

    c++ - Win32 Project Generating MFC error - Stack Overflow

    Google "/MD[d]"

    https://msdn.microsoft.com/en-us/lib...vs.100%29.aspx

  4. #4
    Join Date
    Dec 2006
    Posts
    10

    Re: help needed with C++ library

    Sometimes, just making sure the project settings are correct helps. I had this once, and i was missing an included library in the linker.

    Trouble is your error is very, very generic.

    -Frate

Similar Threads

  1. Shape Library
    By aldepoalo in forum BobCad-Cam
    Replies: 0
    Last Post: 03-09-2015, 11:19 PM
  2. Clip-Art Library
    By witelite in forum Aspire
    Replies: 3
    Last Post: 03-08-2015, 08:17 PM
  3. Library
    By rwskinner in forum Uncategorised CAD Discussion
    Replies: 1
    Last Post: 07-02-2013, 06:36 PM
  4. Tool Library
    By pinguS in forum SolidCAM for SolidWorks and SolidCAM for Inventor
    Replies: 6
    Last Post: 02-26-2011, 08:11 AM
  5. Program library
    By oil in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 08-05-2005, 02:34 PM

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
  •