Author Topic: Missing msvcr70.dll?  (Read 14991 times)

Monkey666

  • Guest
Missing msvcr70.dll?
« on: December 01, 2010, 02:23:42 pm »
Hi,

i recently installed Code:Blocks (10.05 with MinGW) on my Windows machine.

I tried to compile my CPP code, but whem I try to start my executable I recieve an Error that the msvcr70.dll is missing.
This is my Code.
Code: [Select]
#include<iostream>
#include<conio.h>
#include<Windows.h>
using namespace std;

long double _fak(int number);

int main()
{
    start:
    int zahl;
    long double ergebnis;
    cout<<"Bitte geben sie einen Wert ein von dem sie die Fakultaet wissen wollen!\n";
    cin>>zahl;
    if (zahl>170)
    {
                system("cls");
                cout<<"Der angegebene Wert ist zu gross,\nbitte waehlen sie einen Wert zwischen 0 und 171!\n";
                getch();
              system("cls");

                goto start;
                }
    ergebnis=_fak(zahl);
    cout<<ergebnis<<endl;
    getch();
    system("cls");
    goto start;
    return 0;
}

 long double _fak(int number)
{
     long double ergebnis=1;

     for (int i=number; i>=1; --i)
     {
         ergebnis= ergebnis*i;
         }


     return ergebnis;
     }


So i downloaded the .dll file.

I tried to compile and run my Code again, but this time I recieved the error code 0xC0000005.

I hope that you can help me :)


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12910
    • Travis build status
Re: Missing msvcr70.dll?
« Reply #1 on: December 01, 2010, 02:41:48 pm »
Have you tried to search you favorite search engine?
I'm sure you haven't, because there is plenty of info on the matter out there in the wild, you just have to find it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline NeptuneTech

  • Single posting newcomer
  • *
  • Posts: 6
Re: Missing msvcr70.dll?
« Reply #2 on: February 13, 2011, 04:05:45 pm »
Even i had the same problem with compilation.....and i downloaded the msvcr70.dll file, got it copied to c:\windows\sysWOW64 (Windows 7-64bit).....now when i try to run a program, it doesn't say that the  msvcr70.dll file is missing, but instead my explorer doesn't respond...i searched in Google for the issue, but couldn't figure anything out.
!!! ALL EXPERTS WERE ONCE NEWBIES !!!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7017
    • My Best Post
Re: Missing msvcr70.dll?
« Reply #3 on: February 14, 2011, 09:30:51 pm »
« Last Edit: February 14, 2011, 09:51:40 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7017
    • My Best Post
Re: Missing msvcr70.dll?
« Reply #4 on: February 14, 2011, 09:51:01 pm »
Note: You are having an Compiler setup/Configuration/installation error:

Common non CB causes are:
Remove all other Cygwin/MSys/Mingw installation from the system path.
DO NOT have MinGW installed into x:\mingw for any drive x unless it is your only mingw Installation.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline NeptuneTech

  • Single posting newcomer
  • *
  • Posts: 6
Re: Missing msvcr70.dll?
« Reply #5 on: February 16, 2011, 07:31:41 am »

Note: You are having an Compiler setup/Configuration/installation error:

I appreciate your suggestion....but it didnt work out my friend.
i uninstalled the existing codeblocks, downloaded a fresh copy of it with mingw in it...but it seems like the trouble doesnt seem to end
....i couldnt even solve the problem via Google
Common non CB causes are:
Remove all other Cygwin/MSys/Mingw installation from the system path.
DO NOT have MinGW installed into x:\mingw for any drive x unless it is your only mingw Installation.

i dont have any other mingw installed in same destination except the one i have from the complete package download.
I went through the CRT DLL information and tried a lot of homework,but i failed.if u could suggest some more help u knew, id b thankful

!!! ALL EXPERTS WERE ONCE NEWBIES !!!

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Missing msvcr70.dll?
« Reply #6 on: February 16, 2011, 08:33:38 am »
DO NOT have MinGW installed into x:\mingw for any drive x unless it is your only mingw Installation.

i dont have any other mingw installed in same destination except the one i have from the complete package download.

Are you sure there is no other \MinGW folder on any drive (except the one you have installed) ?

Offline NeptuneTech

  • Single posting newcomer
  • *
  • Posts: 6
Re: Missing msvcr70.dll?
« Reply #7 on: February 16, 2011, 12:43:25 pm »
Quote

Are you sure there is no other \MinGW folder on any drive (except the one you have installed) ?


yes admin......im pretty much sure because i haven't separately downloaded and installed any other MinGW other than the one installed along with CB
!!! ALL EXPERTS WERE ONCE NEWBIES !!!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7017
    • My Best Post
Re: Missing msvcr70.dll?
« Reply #8 on: February 16, 2011, 02:56:51 pm »
Please state your version of Windows you are using include if it is 32bit or 64bit.

1. Verify that you do NOT have a mingw DLL "mingwm10.dll" in your system path except for the one in your Compiler Directory. Edit: search your hard drive for all copies of "mingwm10.dll" and fix the system path so them are not in it; Or rename or delete the MinGW DLL except for the single MinGW Compiler DLL.

2. If above fails delete everything in your MinGW installation folder and try a good fresh install.
Please state the version of MinGW you install and the path you install it into.

Tim S.
« Last Edit: February 16, 2011, 03:06:19 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline NeptuneTech

  • Single posting newcomer
  • *
  • Posts: 6
Re: Missing msvcr70.dll?
« Reply #9 on: February 17, 2011, 03:45:04 am »
Please state your version of Windows you are using include if it is 32bit or 64bit.

Its a 64 bit laptop: OS: win 7 untimate.
Quote
1. Verify that you do NOT have a mingw DLL "mingwm10.dll" in your system path except for the one in your Compiler Directory. Edit: search your hard drive for all copies of "mingwm10.dll" and fix the system path so them are not in it; Or rename or delete the MinGW DLL except for the single MinGW Compiler DLL.

Well here is the detail:(a) C:\Program Files (x86)\CodeBlocks has codeblocks in it....this includes the MinGW folder inside (b) C:\Program Files (x86)\CodeBlocks\MinGW). The file mingwm10.dll as mentioned by u is installed as: one in path (a), and other in path (b) inside the bin folder.  i deleted the file mingwm10.dll from path (b). i tried to compile again, but still 'msvcr70.dll missing' error is generated. The mingwm10.dll of path (a) when deleted, wont let CB run.

i have minGW 4.4.2 installed on my lappy. If i had mis leaded the procedures u suggested, could you correct it?..thanks!
« Last Edit: February 17, 2011, 03:46:48 am by NeptuneTech »
!!! ALL EXPERTS WERE ONCE NEWBIES !!!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7017
    • My Best Post
Re: Missing msvcr70.dll?
« Reply #10 on: February 17, 2011, 04:11:31 am »
Do you know what the words "system path" means?
You responses make me think you might have no idea what I mean.

Did you use windows search to find the copies of the mingw DLL?
if yes, did you search all of the C:\ drive?
If not, what method did you use?

Where did you put the msvcr70.dll file? In what folder?

Note: The MinGW dll inside the Code::Blocks folder is OK; but all of the MinGW dlls should be the same version/size/date that might be visable to the program getting the errors.

Please turn on full compiler logging; because I am all out of ideas. You need a MinGW expect and they will likely need to command CB is passing to the Compiler.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S.
« Last Edit: February 17, 2011, 04:41:02 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

mason85

  • Guest
Re: Missing msvcr70.dll?
« Reply #11 on: January 15, 2018, 09:11:58 pm »
I have faced same issue on windows 10 and I have solved it as follow:
1) Visit this website:
http://www.dlldownloader.com/msvcr70-dll/download/fdae882d2ad28cb9e72da8cd3484053d/

choose your operating system and download msvcr70.dll

2) Go to C:\Program Files (x86)\CodeBlocks\MinGW
and paste msvcr70.dll there

3) Run code:Blocks

Offline raynebc

  • Almost regular
  • **
  • Posts: 217
Re: Missing msvcr70.dll?
« Reply #12 on: January 15, 2018, 11:06:33 pm »
Do NOT do that unless you want viruses.  Re-install the program that needs msvcr70.dll as the program's installer is required to put that file on your computer appropriately.