Code Monkey home page Code Monkey logo

Comments (2)

mingkuang-Chuyu avatar mingkuang-Chuyu commented on July 17, 2024

感谢反馈。问题的原因是,构建脚本错误的使用 excel 的LOOKUP来确定ucrt函数是否在msvcrt中。
由于此函数是模糊匹配,这会导致 tanh 匹配 tanhf,_ftime匹配_ftime32等情况发生。这使我错误的认为这些ucrt函数在msvcrt中是存在的,然后引入了错误的函数导入。

影响范围

问题影响较低。只影响NT5.2 x64系统无法运行目标平台为5.2.3790.0 x64的编译产物。

其他目标平台由于msvcrt恰好拥有这些函数或者压根就没有相关函数直接被静态导入了,所以未能触发此问题。

临时缓解方案

无。只能等待VC-LTL发布新版本。

修复方案

现在已经使用XLOOKUP重新纠正函数搜索脚本,并且确认现在5.2.3790.0 x64目标中以下函数受到影响需要跟进解决:

; 调用tanh,这是它等效的double版本
tanhf

; 下面的时间相关函数使用weak转发到对应的VC6时代的无32后缀版本即可
_wutime32 
_wctime32
_utime32
_time32
_mktime32
_localtime32
_gmtime32
_futime32
_ftime32
_ctime32

; 已经实现,调整编译条件,5.2.3790.0 x64重新编译即可
_set_controlfp

from vc-ltl5.

mingkuang-Chuyu avatar mingkuang-Chuyu commented on July 17, 2024

https://github.com/Chuyu-Team/VC-LTL5/releases/tag/v5.0.6-Beta5

from vc-ltl5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.