Mega Search
23.2 Million


Sign Up

Make a donation  
Ambiguity when using FireDac  
News Group: embarcadero.public.cppbuilder.language.cpp

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

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 8-Jan-2015, at 2:40 PM EST
From: PerOle Bjerke