[fpc-devel]operator overloading problem

KO Myung-Hun komh at chollian.net
Sun Sep 24 14:28:14 CEST 2000


Hi.

I successed making RTL partially by modifing 'makefile' and OPT macro
like that you told. Nevertheless, I don't think that this is fundamental
way because FPC don't create .oo2 by itself in MAKE. By the way, FPC
create .oo2 without MAKE. It's strange.

And I encountered another problem. That is operator overloading. When
compiling ucomplex.pp, located in source/rtl/inc/, FPC print below msgs.

--------
ucomplex.pp(59,16) Error: Duplicate identifier PLUS
ucomplex.pp(59,16) Error: Duplicate identifier PLUS
ucomplex.pp(64,16) Error: Duplicate identifier PLUS
ucomplex.pp(64,16) Error: Duplicate identifier PLUS
ucomplex.pp(75,16) Error: Duplicate identifier MINUS
ucomplex.pp(75,16) Error: Duplicate identifier MINUS
ucomplex.pp(80,16) Error: Duplicate identifier MINUS
ucomplex.pp(80,16) Error: Duplicate identifier MINUS
ucomplex.pp(91,16) Error: Duplicate identifier STAR
ucomplex.pp(91,16) Error: Duplicate identifier STAR
ucomplex.pp(96,16) Error: Duplicate identifier STAR
ucomplex.pp(96,16) Error: Duplicate identifier STAR
ucomplex.pp(107,16) Error: Duplicate identifier SLASH
ucomplex.pp(107,16) Error: Duplicate identifier SLASH
ucomplex.pp(112,16) Error: Duplicate identifier SLASH
ucomplex.pp(112,16) Error: Duplicate identifier SLASH
ucomplex.pp(123,17) Error: Duplicate identifier STARSTAR
ucomplex.pp(123,17) Error: Duplicate identifier STARSTAR
ucomplex.pp(128,17) Error: Duplicate identifier STARSTAR
ucomplex.pp(128,17) Error: Duplicate identifier STARSTAR
ucomplex.pp(139,16) Error: Duplicate identifier EQUAL
ucomplex.pp(139,16) Error: Duplicate identifier EQUAL
ucomplex.pp(144,16) Error: Duplicate identifier EQUAL
ucomplex.pp(144,16) Error: Duplicate identifier EQUAL
ucomplex.pp(149,16) Error: Duplicate identifier MINUS
ucomplex.pp(149,16) Error: Duplicate identifier MINUS
----------

the part caused error is related to operator overloading. remarks of
ucomplex.pp say FPC supports operator overloading. FPC supports only
function overloading ? I know that FPC supports operator overloading as
well as function overloading, incorrect ?

Finally, I have questions to development team. The RTL source package is
different from that used by you ? If it's the same, I cannot understand
why you succeed, but I fail. Also, I want to know how you make RTL.

For the better FPC !!!

    from KO Myung-Hun...






More information about the fpc-devel mailing list