XE4 VclTee.TeeGDIPlus.hpp ambiguity error
XE4 VclTee.TeeGDIPlus.hpp ambiguity error
Hello,
I'm using XE4 CPP with latest TChart download v2013.08.130430 32 bit VCL source code version.
I'm trying to recompile an existing application the has a TChart and are getting the following error :-
[bcc32 Error] VclTee.TeeGDIPlus.hpp(59): E2015 Ambiguity between 'TGPRectF' and 'Advgdip::TGPRectF'
[bcc32 Error] VclTee.TeeGDIPlus.hpp(86): E2015 Ambiguity between 'TGPPointF' and 'Advgdip::TGPPointF'
[bcc32 Error] VclTee.TeeGDIPlus.hpp(119): E2015 Ambiguity between 'TGPPointF' and 'Advgdip::TGPPointF'
Sometimes the compile succeeds but the application will crash on launch. I'm not sure TChart is at fault for that aspect though.
Any help on this issue ?
I'm using XE4 CPP with latest TChart download v2013.08.130430 32 bit VCL source code version.
I'm trying to recompile an existing application the has a TChart and are getting the following error :-
[bcc32 Error] VclTee.TeeGDIPlus.hpp(59): E2015 Ambiguity between 'TGPRectF' and 'Advgdip::TGPRectF'
[bcc32 Error] VclTee.TeeGDIPlus.hpp(86): E2015 Ambiguity between 'TGPPointF' and 'Advgdip::TGPPointF'
[bcc32 Error] VclTee.TeeGDIPlus.hpp(119): E2015 Ambiguity between 'TGPPointF' and 'Advgdip::TGPPointF'
Sometimes the compile succeeds but the application will crash on launch. I'm not sure TChart is at fault for that aspect though.
Any help on this issue ?
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
full parser context for the first error :-
Unit1.cpp(6): #include Unit1.h
Unit1.h(14): #include C:\Program Files (x86)\Steema Software\TeeChart Pro 2013 Full Source Code\Sources\Compiled\Delphi18.win32\Include\VclTee.TeeGDIPlus.hpp
VclTee.TeeGDIPlus.hpp(39): namespace Vcltee
VclTee.TeeGDIPlus.hpp(41): namespace Vcltee::Teegdiplus
VclTee.TeeGDIPlus.hpp(54): class Vcltee::Teegdiplus::TGDIPlusCanvas
Unit1.cpp(6): #include Unit1.h
Unit1.h(14): #include C:\Program Files (x86)\Steema Software\TeeChart Pro 2013 Full Source Code\Sources\Compiled\Delphi18.win32\Include\VclTee.TeeGDIPlus.hpp
VclTee.TeeGDIPlus.hpp(39): namespace Vcltee
VclTee.TeeGDIPlus.hpp(41): namespace Vcltee::Teegdiplus
VclTee.TeeGDIPlus.hpp(54): class Vcltee::Teegdiplus::TGDIPlusCanvas
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
I just setup a clean test for a delphi win32 vcl application and it compiles and runs fine.
I also setup a clear cpp win32 vcl application and it produces the same bcc32 Ambiguity errors in VclTee.TeeGDIPlus.hpp.
I also setup a clear cpp win32 vcl application and it produces the same bcc32 Ambiguity errors in VclTee.TeeGDIPlus.hpp.
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
Battled with this and a number of other XE4 issues today.
I tried uninstalling, removing all other IDE paths, and re-installing but this made no difference.
I have since found that it is related to header file order.
As long as the Steema includes are before in my case #include "AdvOfficePager.hpp" it will compile correctly.
I tried uninstalling, removing all other IDE paths, and re-installing but this made no difference.
I have since found that it is related to header file order.
As long as the Steema includes are before in my case #include "AdvOfficePager.hpp" it will compile correctly.
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
Hi,
Thanks for sharing it!bdw wrote:I have since found that it is related to header file order.
As long as the Steema includes are before in my case #include "AdvOfficePager.hpp" it will compile correctly.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 48
- Joined: Tue Apr 09, 2013 12:00 am
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
Hi, Yeray
in my case this did not help.
I've included AdvOfficePager to my very simple application (only TeeChart and AdvOfficePager on Form), but the errors are the same, sorry.
in my case this did not help.
I've included AdvOfficePager to my very simple application (only TeeChart and AdvOfficePager on Form), but the errors are the same, sorry.
With best regards
Vladimir
Vladimir
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
Hello Yeray,Yeray wrote: Thanks for sharing it!
Will you be fixing the apparent scope conflict that seems to exist in VclTee.TeeGDIPlus.hpp and other GDI components ?
The three lines that come up are lines 39, 41, and 54.
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
I placed the VclTee.TeeGDIPlus.hpp include at the following location in my main form header file (in my case FrmMain.hpp) as follows :-anauta2014 wrote:Hi, Yeray
in my case this did not help.
I've included AdvOfficePager to my very simple application (only TeeChart and AdvOfficePager on Form), but the errors are the same, sorry.
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <VclTee.TeeGDIPlus.hpp>
I made sure it was before any other TMS or GDI related includes.
-
- Newbie
- Posts: 48
- Joined: Tue Apr 09, 2013 12:00 am
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
In my case error ismnore complicated:
Compiler told that:
[bcc32 Error] VCLTee.TeeGDIPlus.hpp(23): E2209 Unable to open include file 'Winapi.GDIPAPI.hpp'
Full parser context
Unit5.cpp(6): #include Unit5.h
Unit5.h(12): #include d:\Rad Studio\PackgsXE4\TeeChart2013RADXE4\Delphi18.win32\include\VCLTee.TeeGDIPlus.hpp
And this file (Winapi.GDIPAPI.hpp) is really absent in the system.
Compiler told that:
[bcc32 Error] VCLTee.TeeGDIPlus.hpp(23): E2209 Unable to open include file 'Winapi.GDIPAPI.hpp'
Full parser context
Unit5.cpp(6): #include Unit5.h
Unit5.h(12): #include d:\Rad Studio\PackgsXE4\TeeChart2013RADXE4\Delphi18.win32\include\VCLTee.TeeGDIPlus.hpp
And this file (Winapi.GDIPAPI.hpp) is really absent in the system.
With best regards
Vladimir
Vladimir
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
Hello,
Could you please change this, in TeeGDIPlus.pas:
For this (just adding the "VclTee" prefix)?
Recompile the sources.
Could you please tell us if this solves the problem for you so we can apply the changes for the stable release?
Could you please change this, in TeeGDIPlus.pas:
Code: Select all
{$IFDEF D16}
{$HPPEMIT 'typedef Gdiplus::Graphics TGPGraphics;'}
{$HPPEMIT 'typedef Gdiplus::Brush TGPBrush;'}
{$HPPEMIT 'typedef Gdiplus::Pen TGPPen;'}
{$HPPEMIT 'typedef Gdiplus::Font TGPFont;'}
{$HPPEMIT 'typedef Gdiplus::PrivateFontCollection TGPPrivateFontCollection;'}
{$HPPEMIT 'typedef Gdiplus::RectF TGPRectF;'}
{$HPPEMIT 'typedef Gdiplus::PointF TGPPointF;'}
{$HPPEMIT 'typedef Gdiplus::GraphicsPath TGPGraphicsPath;'}
{$ENDIF}
Code: Select all
{$IFDEF D16}
{$HPPEMIT 'typedef VclTee::Gdiplus::Graphics TGPGraphics;'}
{$HPPEMIT 'typedef VclTee::Gdiplus::Brush TGPBrush;'}
{$HPPEMIT 'typedef VclTee::Gdiplus::Pen TGPPen;'}
{$HPPEMIT 'typedef VclTee::Gdiplus::Font TGPFont;'}
{$HPPEMIT 'typedef VclTee::Gdiplus::PrivateFontCollection TGPPrivateFontCollection;'}
{$HPPEMIT 'typedef VclTee::Gdiplus::RectF TGPRectF;'}
{$HPPEMIT 'typedef VclTee::Gdiplus::PointF TGPPointF;'}
{$HPPEMIT 'typedef VclTee::Gdiplus::GraphicsPath TGPGraphicsPath;'}
{$ENDIF}
Could you please tell us if this solves the problem for you so we can apply the changes for the stable release?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 48
- Joined: Tue Apr 09, 2013 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
Hi Vladimir,
Excellent. Thanks for your feedback. We are going to include the fix for the upcoming maintenance release.
Excellent. Thanks for your feedback. We are going to include the fix for the upcoming maintenance release.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 48
- Joined: Tue Apr 09, 2013 12:00 am
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
Hi, Narcis
Sorry, but don't forget to add pathes for the CBuilder-XE-XE4, especially for X64, old request for the recompile/installer.
And may be you can repare the possibility to recompile packages for CB6? (I have to disable TeeTree and Tee3D for recompile).
Sorry, but don't forget to add pathes for the CBuilder-XE-XE4, especially for X64, old request for the recompile/installer.
And may be you can repare the possibility to recompile packages for CB6? (I have to disable TeeTree and Tee3D for recompile).
With best regards
Vladimir
Vladimir
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
Hi Vladimir,
Yes, this has already been fixed for the upcoming version.Sorry, but don't forget to add pathes for the CBuilder-XE-XE4, especially for X64, old request for the recompile/installer.
Support for C++ Builder 6 will be discontinued in the version. It requires too much development time investment to adapt current TeeChart version to it considering that little users are still using it.And may be you can repare the possibility to recompile packages for CB6? (I have to disable TeeTree and Tee3D for recompile).
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: XE4 VclTee.TeeGDIPlus.hpp ambiguity error
Hi Vladimir,
Looks like we are going to have to remove this solution as it broke standard environments. You can continue using it though.Narcís wrote: Excellent. Thanks for your feedback. We are going to include the fix for the upcoming maintenance release.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |