我无法 运行 C++ builder 2010 中的程序,并收到错误 5 和警告 1 的提示

I can't run a program in C++ builder 2010 and was reminded of error 5 and warning 1

我从 rtklib.com 和 运行 C++ 构建器中下载程序 2010.I 打开一个名为 rtknavi.cbproj 和 运行 的文件,但 CB 2010 提醒我说有错误。可能头文件有问题。 CB的错误信息说:

[BCC32 Error] maskoptdlg.h(5): E2209 Unable to open include file 'System.Classes.hpp' 
[BCC32 Error] maskoptdlg.h(6): E2209 Unable to open include file 'Vcl.Controls.hpp'
[BCC32 Error] maskoptdlg.h(7): E2209 Unable to open include file 'Vcl.StdCtrls.hpp'
[BCC32 Error] maskoptdlg.h(8): E2209 Unable to open include file 
'Vcl.Forms.hpp'
[BCC32 Error] maskoptdlg.h(9): E2209 Unable to open include file 'Vcl.ExtCtrls.hpp'

据说要添加或修改路径,但是怎么办。我只想 运行 程序并查看结果。非常感谢。

对于 C++Builder 2010,这些包含无效:Vcl.System. 前缀尚不存在。从 XE2 开始,include/unit 名称得到了这种处理(以支持 FireMonkey),并且 expected/recommended 在新代码中使用 完全限定的 单元名称。

因此,总而言之:您打开了一个专为 XE2 或更高版本设计的项目。您需要从那些 #include 指令中删除 Vcl.System. 前缀(也许之后您会遇到一些其他错误,但如果它们是来自 Embarcadero 的单元,那么解决方案就是相同)。