Question: I am using VS2010 and 
I have a C++ project that is referencing and using an external C library (dll) by having various entries in the VC++ Directories and Linker sections of the project properties.

Right now my project is building but when it starts, a message box appears :

*The program can't start because ExternalCLibrary.dll is missing from your computer. [...]*

---

I would like to know how to do in Visual Studio 2010 the the equivalent of

> 
> adding "`-static-libgcc -static-libstdc++`" to your compiler flags.
> 
> 
> 

It seems to be the solution according to:
[The program can't start because libgcc\_s\_dw2-1.dll is missing](https://stackoverflow.com/questions/4702732/the-program-cant-start-because-libgcc-s-dw2-1-dll-is-missing)

Answer: 
1. Load your project in Visual Studio.
2. Right click your project and
choose Properties.
3. Locate the "Linker" portion of the tree on the
left.
4. Choose All Configurations and All Platforms from the drop down
menus at the top of the dialog.
5. Put your additional static library
dependencies in the **Input -> Additional Dependencies** field, semicolon delimited.
6. If the libs are not on your lib search path, make appropriate
entries in the **General -> Additional Library Directories** field, semicolon
delimited.
7. Apply, save, compile, run.
The two flags passed to gcc as per your question tell gcc to link the runtime library statically to an executable or shared library/dll. This is unlikely to be the problem with your issue as the part of the error message you quoted suggests that ExternalCLibrary.dll isn't being built properly.

If the DLL exists, use a tool like dependency walker to determine which dependency of your DLL can't be loaded; that's the likely culprit.

If ExternalCLibrary.dll doesn't exist then you need to find out where you are supposed to get it from, but if your project builds and it's listed in the project as a dependency then my guess is that it's an issue with the loader not being able to find a dependency of this DLL at runtime.