c ++随机无法解释的错误

Joh*_*ley 0 c++ opengl visual-studio-2008 kinect openni

我正在使用OpenNi,NITE和OpenGL在Visual Studio 2008中创建一个kinect项目.

在随机时间dureing开发我收到以下错误:

从"C:\ Program Files\Microsoft SDKs\Windows\v6.0A\bin\rc.exe"返回错误结果1.

我没有运气在网上搜索过.

我能够创建一个新项目并复制我的所有代码并且它工作正常但这不是我想要每天做多次的事情.

如果需要更多信息,我很乐意给予它.

编辑完整输出窗口读取

1>------ Build started: Project: PointViewer, Configuration: Debug Win32 ------
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>fatal error RC1110: could not open ..\Res\NITE.rc
1>Project : error PRJ0002 : Error result 1 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\rc.exe'.
1>Build log was saved at "file://d:\Documents\Uni work\Year 4\Personal Project\Samples \PointViewer\Debug\BuildLog.htm"
1>PointViewer - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Run Code Online (Sandbox Code Playgroud)

abe*_*nky 5

您正通过相对路径(..)引用RC文件.
您的当前目录似乎正在更改,因此..RC文件的路径会发生更改,从而导致错误.

您必须确保以不改变的方式引用RC文件.尝试将其从项目中删除,然后重新添加它,注意仅以绝对术语引用它.

检查项目并构建要开始构建的目录的设置,以及如何在项目设置中保留文件名.你正在寻找像"坚持使用Filenames As ..."这样的东西.