Visual Studio调试器错误:无法启动程序指定的文件无法找到 [英] Visual Studio debugger error: Unable to start program Specified file cannot be found

查看:2150
本文介绍了Visual Studio调试器错误:无法启动程序指定的文件无法找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C的解决方案:\\这里\\ VS2010完整路径\\ blender.sln

I have a solution in C:\full path here\VS2010\blender.sln

该解决方案包含很多项目(约100)。当我编译他们,他们都做工精细。我可以毫无问题运行​​它们,和(相当)一切正常(有一些bug)。
其中一个项目是ALL_BUILD,但如果我尝试调试INSTALL(另一个项目),它给出了同样的错误。我与RELWithDebInfo编译配置,如果我执行程序手动它的作品。它在C输出:\\这里完整路径\\ VS2010 \\ BIN \\ RelWithDebInfo

This solution contains many projects(around 100). When I compile them, they all work fine. I can run them without any problem, and (quite) everything works (there are some bugs). One of the projects is ALL_BUILD, but it gives the same error if I try to debug INSTALL(another project). I'm compiling with RELWithDebInfo as configuration, and if I execute the program manually it works. It is outputted in C:\full path here\VS2010\bin\RelWithDebInfo

但是,如果我尝试运行编译器,它说:

But if I try to run the compiler, it says

无法启动程序
  C:\\完整路径这里\\ VS2010 \\ RelWithDebInfo \\ ALL_BUILD
  指定的文件无法找到

"Unable to start program C:\full path here\VS2010\RelWithDebInfo\ALL_BUILD Specified file cannot be found"

我试图编译的程序复制到由VS所需的路径,但它提出了同样的错误。

I tried to copy the compiled program into the path required by VS, but it raised the same error.

我应该怎么做来解决这个?现在,我设置了同样的CMake生成一个MinGW的项目,我编译它,并用gdb调试,但是这是一个非常缓慢的和不切实际的工作流程,我想用VS调试器。

What should I do to solve this? Right now I set up cmake to generate also a mingw project and I compile it and debug it with gdb, but this is a really a slow and impractical workflow, and I would like to use the VS debugger.

我必须说,如果我调试编译配置,程序不会甚至开始。

I must say that if I compile with Debug as configuration, the program doesn't even start.

我使用Win7上64位VS2010前preSS

I'm using VS2010 Express on Win7 64bit

(这是一个很大的开放源码程序,所以我不知道到底什么它)

(This is a big open source program, so I don't know exactly whatever it does)

推荐答案

这是我有,你没有真正编译程序,但是尝试运行它的信息猜测。也就是说,BUILD_ALL被设置为启动项目。 (这应该是一个大胆的字体,不像在解决方案中的其他项目)如果你再尝试运行/调试,你会得到你所描述的错误,因为根本就没有运行。

Guessing from the information I have, you're not actually compiling the program, but trying to run it. That is, BUILD_ALL is set as your startup project. (It should be in a bold font, unlike the other projects in your solution) If you then try to run/debug, you will get the error you describe, because there is simply nothing to run.

该项目通过CMake的最有可能产生并包含在Visual Studio解决方案。设置任何做生成.exe文件为启动项目(通过设置为启动项目项目,并选择右键点击)项目,你将最有可能将能够在Visual Studio中启动这些。

The project is most likely generated via CMAKE and included in your Visual Studio solution. Set any of the projects that do generate a .exe as the startup project (by right-clicking on the project and selecting "set as startup project") and you will most likely will be able to start those from within Visual Studio.

这篇关于Visual Studio调试器错误:无法启动程序指定的文件无法找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆