Ambiguities problem

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Milan Bacik
Posts: 28
Joined: Fri 28 Apr 2006 08:59
Location: Czech Republic
Contact:

Ambiguities problem

Post by Milan Bacik » Fri 28 Apr 2006 09:05

Using C++ Builder in BDS 2006 Profesional.
What is proper order of includes headers to avoid ambiguities in DB classes like [C++ Error] fDMCert.cpp(39): E2015 Ambiguity between 'pdInput' and 'Craccess::pdInput'
Currently using BDE, ADO and testing ODAC. I want to create separate header for DBheders used in project like AllDBHeaders.h which i include in all classes that use DB.

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Fri 28 Apr 2006 14:43

Changing order of includes doesn't solve this problem. So you should specify namespace before name of type or constant.

Post Reply