Ambiguity when using FireDac |
|
Hi,
Using XE7 I have tried to use FireDac in a existing application (quite large) but when compiling it fails with ambiguities in almost every files that includes this new module and existing older ones.
These ambiguities are related to ULONG,USHORT etc. defined in "windows headers" and Ibx related definitions.
I did a test project with the same results.
In the main form I have a dbgrid linked to a FDTable (works as it should).
I then added a form with a TChart component and when compiling I got
[bcc32 Error] ddraw.h(980): E2015 Ambiguity between 'ULONG' and 'Firedac::Phys::Ibcli::ULONG'
Full parser context
Unit1.cpp(7): #include Unit2.h
Unit2.h(12): #include c:\devtools\embarcadero\studio\15.0\include\windows\vcl\VclTee.TeeGDIPlus.hpp
VclTee.TeeGDIPlus.hpp(23): #include c:\devtools\embarcadero\studio\15.0\include\windows\rtl\Winapi.GDIPAPI.hpp
Winapi.GDIPAPI.hpp(19): #include c:\devtools\embarcadero\studio\15.0\include\windows\rtl\Winapi.DirectDraw.hpp
Winapi.DirectDraw.hpp(22): #include c:\devtools\embarcadero\studio\15.0\include\windows\sdk\ddraw.h
ddraw.h(976): class IDirectDraw
Can I avoid these ambiguities somehow ?
Thanks,
PerOle
|