I have an unmanaged C ++ project in Visual Studio 2010. It uses boost, glut and another library from the provider.
I created a project to create a more "dll-independencelydent" executable. All acceleration libraries are linked statically and there is no need for a dll in the directory where the executable remains.
Same for Glut, I linked static glut32.lib instead of glut32.dll and again no problem.
I chose the version of NON-dll for runtime libraries, that is, multi-threaded debugging (for debugging configuration) and a configuration with several messages for release.
Now the provider I mentioned earlier provides two alternatives to Vendor.lib and Vendor.dll.
Vendor.lib is added in the Linker-> Additional dependencies, but at runtime I always need to put the Vendor.dll file in the same directory of the executable file, otherwise the runtime complains because it does not find a provider. dll libraries.
How do I solve this problem? I would like not to put a DLL file in every directory.
I do not want to put the DLL in the same exe directory and what are the general guidelines for deploying C ++ unmanaged console applications in Visual Studio?
I know that there are many questions and pages about this argument, but none of them clarified this point to me.
Some idea?
c ++ visual-c ++ visual-studio-2010 deployment static-linking
linello
source share