Discussion:
DCC32 generate wrong HPP files
(too old to reply)
Najeeb
2007-07-30 10:13:28 UTC
Permalink
Hi,

I am using Delphi'd DCC32 command line compiler with option -B -jphnv
for compiling and generating .Hpp and .Obj for c++ Builder. It compiles
and generates the files, but my real problem is the generated HPP files
are giving error.

I am using the code bellow in delphi
---

{$EXTERNALSYM FillMode}
FillMode = (
FillModeAlternate, // 0
FillModeWinding // 1
);
TFillMode = FillMode;

---

But in the generated Hpp it still redeclared the symbol which gives me
an error

typedef FillMode TFillMode;

Somebody please help me to solve this problem.

Regards,
Najeemudheen
David Dean [CodeGear]
2007-07-30 21:54:10 UTC
Permalink
Post by Najeeb
{$EXTERNALSYM FillMode}
FillMode = (
FillModeAlternate, // 0
FillModeWinding // 1
);
TFillMode = FillMode;
---
But in the generated Hpp it still redeclared the symbol which gives me
an error
typedef FillMode TFillMode;
Somebody please help me to solve this problem.
It looks like TFillMode should also be EXTERNALSYMed...
--
-David Dean
CodeGear C++ QA Engineer
<http://blogs.codegear.com/ddean/>
Najeeb
2007-07-31 12:33:04 UTC
Permalink
Post by David Dean [CodeGear]
Post by Najeeb
{$EXTERNALSYM FillMode}
FillMode = (
FillModeAlternate, // 0
FillModeWinding // 1
);
TFillMode = FillMode;
---
But in the generated Hpp it still redeclared the symbol which gives me
an error
typedef FillMode TFillMode;
Somebody please help me to solve this problem.
It looks like TFillMode should also be EXTERNALSYMed...
Let me check this out. i will let you know if it works

Thank you David.

---
Regards,
Mohammed Najeemudheen

Loading...