[GiNaC-devel] Compilation with MinGW on Windows
Vladimir V. Kisil
V.Kisil at leeds.ac.uk
Sun Feb 12 11:14:02 CET 2023
Dear All,
I am compiling GiNaC v1.8.6 on Windows using MinGW from Qt
distribution pack. The compilation stopped with the error:
factor.cpp:2397:75: error: ambiguous overload for 'operator=' (operand types are 'GiNaC::numeric' and 'long long unsigned int')
2397 | ctx.modulus = (ctx.vnlst.size() > 3) ? ctx.vnlst.size() : 3;
| ^
I was able to finish the compilation by replacing the line with:
ctx.modulus = (ctx.vnlst.size() > 3) ? ctx.vnlst.size() : numeric(3);
Just in case I am attaching this as patch.
Best wishes,
Vladimir
--
Vladimir V. Kisil http://www1.maths.leeds.ac.uk/~kisilv/
Book: Geometry of Mobius Maps https://doi.org/10.1142/p835
Soft: Geometry of cycles http://moebinv.sourceforge.net/
Jupyter notebooks: https://github.com/vvkisil?tab=repositories
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Resolve-ambiguous-overload.patch
Type: text/x-diff
Size: 911 bytes
Desc: GiNaC::factor.cpp patch.patch
URL: <http://www.ginac.de/pipermail/ginac-devel/attachments/20230212/3179e08a/attachment.bin>
More information about the GiNaC-devel
mailing list