C ++编译错误 [英] c++ compiling error

查看:135
本文介绍了C ++编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,最近尝试编译有关光流的代码.出现此错误!

Hi, recently tried to compile a code on optical flow. Got this error!

Build Log      Build started: Project: proesmans, Configuration: Debug|Win32
 Command Lines      Creating temporary file "c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\proesmans\proesmans\Debug\RSP00000214322728.rsp" with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /c /ZI /TC "..\..\..\..\..\Desktop\Project software\of-eval-1.0\of-eval\of_implementations\proesmans\main.c"

"..\..\..\..\..\Desktop\Project software\of-eval-1.0\of-eval\of_implementations\proesmans\proesmans.c"
]
Creating command line "cl.exe @"c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\proesmans\proesmans\Debug\RSP00000214322728.rsp" /nologo /errorReport:prompt"
 Output Window      Compiling...
proesmans.c
c:\documents and settings\administrator\desktop\project software\of-eval-1.0\of-eval\of_implementations\proesmans\proesmans.h(7) : fatal error C1083: Cannot open include file: ''values.h'': No such file or directory
main.c
c:\documents and settings\administrator\desktop\project software\of-eval-1.0\of-eval\of_implementations\proesmans\proesmans.h(7) : fatal error C1083: Cannot open include file: ''values.h'': No such file or directory
Generating Code...
 Results      Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\proesmans\proesmans\Debug\BuildLog.htm"
proesmans - 2 error(s), 0 warning(s)



我不明白为什么不存在values.h.我应该去哪里使它存在?


另一个问题,是否有多个源文件会导致问题..i''使用main.cpp和proesmans.cpp.到目前为止,我只有一个源文件!

问候
Opul3nce



I don''t understand why a values.h isn''t present. Where should i go to make it exist?


Another question, does having multiple source files cause problems..i''m using a main.cpp and a proesmans.cpp. Up till now i''ve only had one source file!

Regards
Opul3nce

推荐答案

c:\documents and settings\administrator\desktop\project software\of-eval-1.0\of-eval\of_implementations\proesmans\proesmans.h(7) : fatal error C1083: Cannot open include file: 'values.h': No such file or directory
main.c



只是意味着您已在proesmans.h文件中添加了#include "values.h",但是编译器无法找到标头.如果您真的不明白这一点,那么我认为您可能需要返回C ++文档.

第二个问题:不,项目中有多个源没有问题,大多数应用程序都有.



simply means that you have added an #include "values.h" in your proesmans.h file, but the compiler cannot find the header. If you really do not understand this then I think you may need to go back to your C++ documentation.

Second question: No, there is no problem having multiple sources in a project, most applications have that.


这篇关于C ++编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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