简体   繁体   English

在C ++ Builder XE7中使用TChart

[英]Using TChart in C++Builder XE7

When I add a TChart to a test C++Builder project and build, I get an error: 当我将TChart添加到测试C ++ Builder项目并进行构建时,出现错误:

[bcc32 Error] GdiPlus.h(21): E2209 Unable to open include file 'algorithm' [bcc32错误] GdiPlus.h(21):E2209无法打开包含文件“算法”

Full parser context 完整的解析器上下文

CPPMainForm.cpp(6): #include CPPMainForm.h CPPMainForm.cpp(6):#include CPPMainForm.h

CPPMainForm.h(13): #include C:\\Program Files (x86)\\Steema Software\\TeeChart 2014 for RAD XE7\\Delphi21.win32\\Include\\VclTee.TeeGDIPlus.hpp CPPMainForm.h(13):#include C:\\ Program Files(x86)\\ Steema Software \\ TeeChart 2014 for RAD XE7 \\ Delphi21.win32 \\ Include \\ VclTee.TeeGDIPlus.hpp

VclTee.TeeGDIPlus.hpp(23): #include C:\\Program Files (x86)\\Embarcadero\\Studio\\15.0\\include\\windows\\rtl\\Winapi.GDIPAPI.hpp VclTee.TeeGDIPlus.hpp(23):#include C:\\ Program Files(x86)\\ Embarcadero \\ Studio \\ 15.0 \\ include \\ windows \\ rtl \\ Winapi.GDIPAPI.hpp

Winapi.GDIPAPI.hpp(24): #include C:\\Program Files (x86)\\Embarcadero\\Studio\\15.0\\include\\windows\\sdk\\GdiPlus.h Winapi.GDIPAPI.hpp(24):#包括C:\\ Program Files(x86)\\ Embarcadero \\ Studio \\ 15.0 \\ include \\ windows \\ sdk \\ GdiPlus.h

I find no 'algorithm' include files on my computer except in the Boost directories 我没有在计算机上找到任何“算法”包含文件,除了Boost目录中

I've install "TeeChart 2014 for RAD XE7", that is for both Delphi and C++Builder, right ? 我已经安装了“ TeeChart 2014 for RAD XE7”,它同时适用于Delphi和C ++ Builder,对吗?

Any ideas ? 有任何想法吗 ?

Check that you have in your System Include Path (Tools | Options | C++ Options | Path and Directories) the default path for the boost libraries: 检查系统包含路径(工具|选项| C ++选项|路径和目录)中是否具有Boost库的默认路径:

$(CG_BOOST_ROOT)\boost\tr1\tr1
$(CG_BOOST_ROOT)

This should make the compiler select the correct version of the library to include. 这应该使编译器选择要包含的正确版本的库。 In the first path, tr1 , it's the file it is looking for: algorithm 在第一个路径tr1 ,它是要查找的文件: algorithm

This is for XE5, but it should work as-is for newer versions. 这适用于XE5,但对于较新的版本应按原样工作。

Optionally, you could add this to your project search path, but this should be on the global options, at least that's how the installer sets up this when installing. 您可以选择将其添加到项目搜索路径中,但这应该在全局选项上,至少这是安装程序在安装时进行设置的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM