hermann on Sat, 13 Jul 2024 23:37:04 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Should forvec_t / forvec_init() / forvec_next() work in shared library code?


I tried to use them today, and code stopped to work.
I found workaround to iterate for C for() loop from 1
until lg(points)-1 for t_VEC type GEN in libpari code:
https://github.com/Hermann-SW/cgal4gp/blob/main/cgal4gp.cpp#L48-L53

So should  forvec_t / forvec_init() / forvec_next()  work
when compiled with "g++ -O3 -ffp-contract=off -fno-strict-aliasing -fPIC …"?

Regards,

Hermann.