ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Borland C++ Ambiguity between 'Mark' and '_fastcall System::Mark()'
Posted by fuuzn on Sep-01-2010 11:59
Attachments:
Hello all,
I use ChartDirector Version 5.0.2 and Borland c++ builder 6 as a compiler,
I create a simple form and generate a simple angglepie chart on it. But I get this following error message on chartdir.h when build the code:

Build
  [C++ Error] chartdir.h(1254): E2015 Ambiguity between 'Mark' and '_fastcall System::Mark()'
  [C++ Error] chartdir.h(1256): E2015 Ambiguity between 'Mark' and '_fastcall System::Mark()'

Anybody could fix this problem? thank you verymuch.

-fuuzn-
chartdir.JPG

  Re: Borland C++ Ambiguity between 'Mark' and '_fastcall System::Mark()'
Posted by Peter Kwan on Sep-01-2010 21:39
Hi fuuzn,

I have never used Borland C++ Builder 6 before, but I think the issues you have encountered is a common C++ naming conflict. The common solutions are:

(a) Change the order of the header file. For example, you may put #include "chartdir.h" as the first line in your code, before any other header file.

(b) Add a namespace to encapsulate the symbols, like:

namespace myNameSpace {
#include "chartdir.h"
}
using namespace myNameSpace;

Hope this can help.

Regards
Peter Kwan

  Re: Borland C++ Ambiguity between 'Mark' and '_fastcall System::Mark()'
Posted by fuuzn on Sep-02-2010 11:00
Peter,
Thank you for your response,
It seem works, Peter.

Thank you