简体   繁体   English

如何为VC ++项目设置启动可执行文件?

[英]How to set startup executable for a VC++ project?

This is a pretty novice question, but I've been trying to build and run Ghostscript using Visual Studio 2012. When I try to do "Start Debugging" or "Start Without Debugging" the project builds fine, but then I get the error "Unable to start program 'C:...\\ghostscript-9.07\\debugobj\\ghostscript.exe" 这是一个相当新手的问题,但是我一直在尝试使用Visual Studio 2012构建和运行Ghostscript。当我尝试执行“开始调试”或“开始而不进行调试”时,项目构建良好,但是出现错误“无法启动程序'C:... \\ ghostscript-9.07 \\ debugobj \\ ghostscript.exe”

The project never outputs a ghostscript.exe file when compiled. 编译后,项目永远不会输出ghostscript.exe文件。 It outputs "gswin32.exe" in the debugbuild directory, which is the file I need to run after compilation. 它在debugbuild目录中输出“ gswin32.exe”,这是编译后我需要运行的文件。 I think Visual Studio is looking for debugobj\\ghostscript.exe because the project is named "ghostscript" and debugobj is configured as the output directory. 我认为Visual Studio正在寻找debugobj \\ ghostscript.exe,因为该项目名为“ ghostscript”,并且debugobj被配置为输出目录。

Is there some kind of configuration setting I can set to specify that debugbuild\\gswin32.exe is the executable that should be run after building? 我可以设置某种配置设置来指定debugbuild \\ gswin32.exe是构建后应运行的可执行文件吗?

Thanks. 谢谢。

Yes there is. 就在这里。 From the Project menu go into Properties and review the settings in the Debug section. 从“项目”菜单进入“属性”,然后在“调试”部分中查看设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM