Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to run this code on PAGE 7. of this document, and successfully ran it on Microsoft Visual Studio 2010 for Windows. The problem is that I need to get this code working on linux. I read up a bit, and found Wine could be helpful in linux to run the .exe file generated from Visual studio compilation. I installed Wine and ran the .exe file, but it gives an error:

snehil@ubuntu:~/Desktop/wine$ wine b2
err:module:import_dll Library MSVCR100D.dll (which is needed by    
L"Z:\\home\\snehil\\Desktop\\wine\\b2.exe") not found
err:module:LdrInitializeThunk Main exe initialization for   
L"Z:\\home\\snehil\\Desktop\\wine\\b2.exe" failed, status c0000135

Please give me your valuable suggestion/pointers/references/advice on how can I get the .exe file running on Linux by looking at the code.

share|improve this question

migrated from Dec 3 '12 at 13:35

This question came from our site for professional and enthusiast programmers.

download or copy MSVCR100D.dll from your windows and place where the .exe is present in linux – Chipmunk Dec 2 '12 at 19:22
Another option could be to recompile the same code in Linux, using gcc – KaeruCT Dec 2 '12 at 19:23
Msvcr*d.dll are debug versions of the dll. Try rebuilding in release mode. – Chad Dec 2 '12 at 20:11
Thanks Chad!! IT worked like magic! – Rookie Dec 2 '12 at 21:21

As per the comment from Chad above:

Msvcr*d.dll is the debug version of the dll. Try rebuilding the application in release mode

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.