CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    [RESOLVED] The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Hello to all, i have developed an application that required this dll must resize along the exe.

    When i execute the exe, it pop out a error message like the _malloc_dbg could not be located.

    I wonder what is .lib for this dll.

    AFAIK, there must be some export library file that need to used together with dll.

    Please help.

    Thanks.
    Thanks for your help.

  2. #2
    Join Date
    Nov 2009
    Posts
    15

    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Hi
    msvcr71.dll is a process belonging to the Microsoft C Runtime Library program . msvcr71.dll is a module containing standard C library functions such as printf, memcpy, and cos. It is a part of the Microsoft C Runtime Library.

    _malloc_dbg

    requires the header <crtdbg.h>.

    maybe you forogot to include it.

  3. #3
    Join Date
    Feb 2002
    Posts
    4,640

    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Quote Originally Posted by Peter_APIIT View Post
    Hello to all, i have developed an application that required this dll must resize along the exe.

    When i execute the exe, it pop out a error message like the _malloc_dbg could not be located.

    I wonder what is .lib for this dll.

    AFAIK, there must be some export library file that need to used together with dll.

    Please help.

    Thanks.
    Did you compile the "Release" version of the EXE? Judging by the name of the unfound function, it looks like it's a debug version.

    Viggy

  4. #4
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    I link with the MSVCR.dll but i just renamed it to MSVCRD.dll.

    I compile in debug version.
    Thanks for your help.

  5. #5
    Join Date
    Feb 2002
    Posts
    4,640

    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Well, that's the problem then. You can't rename the release DLL to the same name as the debug DLL. That function is a debug function and is not compiled into the release DLL.

    Either compile in release, and link with the release CRT library; or compile in debug and link with the debug CRT library.

    Viggy

  6. #6
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    I really thanks for your advice.

    What is the difference between a debug dll and release dll ?
    What kind of symbol that is available in debug mode but not in release mode ?

    A billion thanks for your help.


    Problem solved.
    Last edited by Peter_APIIT; November 6th, 2009 at 11:51 PM.
    Thanks for your help.

  7. #7
    Join Date
    Apr 1999
    Posts
    27,449

    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Quote Originally Posted by Peter_APIIT View Post
    I link with the MSVCR.dll but i just renamed it to MSVCRD.dll.
    You shouldn't be fooling around with those DLL's like that.

    Those DLL's are part of the 'C' runtime library, and renaming them not only causes issues with your application, but any application that requires those DLL's will not work properly.

    No programmer needs to rename these DLL's -- the problem is your code or whatever else you're doing, not the names of DLL's that millions of computers around the world rely on.

    Regards,

    Paul McKenzie

  8. #8
    Join Date
    Feb 2002
    Posts
    4,640

    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Quote Originally Posted by Peter_APIIT View Post
    I really thanks for your advice.

    What is the difference between a debug dll and release dll ?
    What kind of symbol that is available in debug mode but not in release mode ?

    A billion thanks for your help.


    Problem solved.
    The debug versions have been compiled with compiler/linker debug options enabled; and possibly may contain more functions then release (optimized) versions.

    Viggy

  9. #9
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    Re: The Procedure entry point _mall-c_dbg could not be located in the DLL MSVCR71.dll

    Thanks.
    Thanks for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured