missing dll file ... =~(

Hiii...
I compile a program, it works..
I send the file to another computer, it shows me "the program cannot start because MSVCP100D.dll is missing."
Why can't I run my exe file on the other computer?
Why does this error occur?
I thought exe can be run anywhere?
You compiled the debug version and sent it to someone else?

Ok, programs can run anywhere, but they will often need DLLs (dynamically linked libraries), which are small prohgrams if you will containing commonly used features. The upside of this is that you don't have to recompile *everything* with a tiny change to your code, the downside is that you need to either: a) package the necessary DLLs into your program when you send it to someone, or b) ensure the recipient has those DLLs already.

MSVCP100D is the Microsoft Visual C++ compiler/runtime library for debugging. Your other computer should installs Visual Studio 2010, or if you compile in "release" mode and send the binary, you should be able to just install the 2010 runtime (not sure if release actually requires the dll, in fact)
Hi, actually I'm super noob.. I don't know what is release version..how do I make it a release verson?
How do I build a package to contain the dll?
In the top of MSVS, there's a drop down box labelled something like Configuration (next to the green "run" arrow, I think). It's probably saying debug now, change it to release and build the project/solution again.

You don't "build" a package, you package them together (ie, send them at the same time in a archive file of some sort), so that you are sure your user has these files.
so means if i change it to release, and build, i will be able to use it at any computer without encountering the missing dll?
If you build it in release, it will not be linking to the debug library - it may still link to the run time library for Visual C++, but I'm not sure. If it does require the runtime library in release, you can either put the MSVC100.dll onto the other computer in the directory your executable is, or -- more generally - install the runtime which you should be able to find looking through Microsofts website, I'd expect.

I'm sorry, I don't have any [windows] computers without the visual studio installed to try and test with.
Thanks a lot for sharing these information =)
Topic archived. No new replies allowed.