[英]Visual Studio: some projects in solution don't generate .exe files
I have a Visual Studio C++ solution with 3 projects: one contains all classes and their definition, and generates .lib file (static library). 我有一个包含3个项目的Visual Studio C ++解决方案:一个包含所有类及其定义,并生成.lib文件(静态库)。 Other two projects conatin main functions: one for running the application and one for testing (via googletest). 其他两个项目代表主要功能:一个用于运行应用程序,另一个用于测试(通过googletest)。 They both should generate .exe files, as it's specified in Properties/Configuration Properties/General/Configuration Type, but they both don't actually generate .exe files. 它们都应生成.exe文件(如在“属性/配置属性/常规/配置类型”中指定的一样),但是它们实际上都不会生成.exe文件。 Solution builds without errors. 解决方案构建没有错误。 What's a problem? 怎么了
您必须在Configuration Properties -> Linker -> General -> Output File
指定exe
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.