AfxComplex-&-AfxMath

Started by hajubu, August 05, 2026, 09:13:07 AM

Previous topic - Next topic

hajubu

Hi, Jose

just dowloaded the latest AfxNova (AfxNova-260804_af18ed4) and got and error 4 Duplicate Definition.
It seams that we have in AfxComplex or/and AfxMath duplicates.
 (AfxComplex line 87 & 297 ) //  (AfxMath line 753 another FUNCTION IsInfinity Function )

taking the old AfxComplex runs fine even with AfxMath.inc aside.

May you have a closer look - Thanks

Hajubu

```
#console on
/' simple testcase with Tiko 260731 and also Tiko2-beta (_dev_260804_0324_445bbd84) '/
#include "AfxNova\CComplex.inc"
DIM z AS _complex = (1.2345, -2.3456)
print CAbsSqr(z)
SLEEP(5000)
----
AfxNova-260804_2208_af18ed4  ==> Duplicated definition

new upload AfxComplex.inc . AfxMath.inc
Line:  87 --- error 4: Duplicated definition in 'DECLARE FUNCTION IsInfinity (BYVAL x AS DOUBLE) AS LONG'
Line: 297 --- error 4: Duplicated definition in 'PRIVATE FUNCTION CComplex.IsInfinity (BYVAL x AS DOUBLE) AS LONG'
----
AfxNova-260801_1608_b4ab951 ==> runs without error
old AfxComplex.inc -BUT has had  NO AfxMath.inc - as all before - ,
upload was only DWStrProcs.Inc
```

José Roca

Thanks. I will look at it. I have uploaded AfxMath.inc by mistake. It is a work in progress almost finished that I have began to document.

José Roca


hajubu