本文介绍了Visual Studio编译,但exe不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在其他人环境中编译良好的源代码将无法在我的环境中正常工作。当我做一个重建编译发生,但是当visual studio将exe从/ obj / debug / {solution}移动到/ debug / {solution}它不能在/ obj / debug / {solution}中找到exe。为了使这甚至更疯狂,即使我重新安装Visual Studio它不工作。在其他人的环境下,它工作找到。请注意,这是一个windows mobile 6,紧凑框架3.5项目,Visual C ++项目。

Source code that compiles fine on other peoples environments won't correctly work in my environment. When I do a rebuild the compile occurs but when visual studio goes to move the exe from /obj/debug/{solution} to /debug/{solution} it cannot find the exe in the /obj/debug/{solution}. To make this even more crazy even after I reinstall visual studio it doesn't work. On other people environments it works find. Please note that this is a windows mobile 6, compact framework 3.5 project, Visual C++ project.

感谢高级。

编辑:Visual Studio 2008正在使用。

Visual Studio 2008 is being used.

EDIT2:再次查看日志后,发现它说它是编译,但它不是真的编译。有趣的是,它不会抛出任何错误,直到它尝试链接代码。

After looking at the logs again come to find out it says it is compiling but it isn't really compiling. Interesting enough it doesn't throw any errors until it tries to link the code. When it goes to link the object files, they aren't there and it fails.

推荐答案

我有两个发行文件夹:一个在解决方案文件夹中,一个在项目文件夹中。前者包含.exe文件,后者不包含。

I got TWO Release folders: one in the solution folder and one in the project folder. The former contains the .exe file, the latter does not.

这篇关于Visual Studio编译,但exe不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 11:48