Help with bug E2015 Ambiguity??

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
pcJeremy
Posts: 2
Joined: Mon 15 Aug 2005 15:43

Help with bug E2015 Ambiguity??

Post by pcJeremy » Mon 15 Aug 2005 15:47

Hi, I just installed version 4 of the myDac for c++ builder 6 and now I have a new error in my project:

[C++ Error] SyncObjs.hpp(75): E2015 Ambiguity between 'Windows' and 'Excel_2k::Windows'

any help on how to resolve this?

Paul
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Post by Paul » Tue 16 Aug 2005 09:48

It is a compatibility problem of Windows.h, syncobjs.hpp, excel_2k.h in C++ Builder.
Please add "#include " before "#include " in your code.
Or put "#include " after declarations of MyDAC components (#include "MyAccess.hpp")

pcJeremy
Posts: 2
Joined: Mon 15 Aug 2005 15:43

Post by pcJeremy » Wed 17 Aug 2005 13:21

Re-ordering the include statements seems to work fine... thanks for the help

Post Reply