Your original complaint was about debug builds, and nothing you done in this PRO specifically changes the default behaviour for a debug build... i.e. to use DLLs.
What makes you think you need to explicitly specify the static MS VC and C++ runtime libraries? A quick test here indicates that using "/MT" alone is sufficient to remove the dependency on the DLL and use the static libraries.
With this source file:
#include <iostream>
int main(int argc, char **argv) {
std::cout << "Hello world" << std::endl;
return 0;
}
#include <iostream>
int main(int argc, char **argv) {
std::cout << "Hello world" << std::endl;
return 0;
}
To copy to clipboard, switch view to plain text mode
and this command line in a VS command prompt:
cl /MDd main.cpp
cl /MDd main.cpp
To copy to clipboard, switch view to plain text mode
do you get a working executable without complaints about missing libraries? How about with "/MTd" ?
Bookmarks