[CM] Failed to build S7 Scheme using MSVC when HAVE_OVERFLOW_CHECKS is enabled

Da Shen da at liii.pro
Mon Dec 30 05:29:45 PST 2024


It is because of the missing impl of the following routines:
s7.lib(s7.c.obj) : error LNK2001: unresolved external symbol multiply_overflow 
s7.lib(s7.c.obj) : error LNK2001: unresolved external symbol add_overflow 
s7.lib(s7.c.obj) : error LNK2001: unresolved external symbol int32_multiply_overflow 
s7.lib(s7.c.obj) : error LNK2001: unresolved external symbol int32_add_overflow 
s7.lib(s7.c.obj) : error LNK2001: unresolved external symbol subtract_overflow
Just found the nice feature of S7 Scheme on Linux and macOS without GMP enabled:
(+ #x7fffffffffffffff 1) => 9223372036854776000.0
And unfortunately, it does not work on Windows:
(+ #x7fffffffffffffff 1) => -9223372036854775808
Could you help implement the missing routines on MSVC?
It seems the routines generated by Deepseek or Claude is trustworthy to use.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20241230/227356c5/attachment.html>


More information about the Cmdist mailing list