作业帮 > 综合 > 作业

英语翻译Win32 has an annoying issue where there are multiple C r

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/17 05:16:00
英语翻译
Win32 has an annoying issue where there are multiple C run-time
libraries (CRTs).If the executable is linked with a different CRT
from the GLUT DLL,the GLUT DLL will not share the same CRT static
data seen by the executable.In particular,atexit callbacks registered
in the executable will not be called if GLUT calls its (different)
exit routine).GLUT is typically built with the
"/MD" option (the CRT with multithreading DLL support),but the Visual
C++ linker default is "/ML" (the single threaded CRT).
Win32有一个烦人的问题在有多C运行时库(CRTs),如果这个执行文件链接来自GLUT DLLDe一个不同的CRT,这个GLUT DLL将不能共享相同的CRT静态数据用执行文件来查看.在详细说明,退出执行程序回调被注册在执行程序里不能被调用,如果,GLUT调用了不同的退出程序.GLUT通常构建在/MD选项(这个CRT是多线程DLL支持),但是,这个 vc++ 链接器 默认是/ML (是单线程CRT)
当有多个C运行时库(CRTs)时,Win32有一个烦人的问题.如果执行文件和来自GLUT DLL的不同的CRT链接,GLUT DLL不会共享执行文件所能看到的相同的CRT静态数据.特别是如果GLUT调用其(不同的)退出程序时,在执行文件里注册了的回调程序atexit 将不会被调用.GLUT通常是使用 “/MD”选项被构建的(具有多线程DLL支持的CRT),但是Visual C++链接程序的默认选项是“/ML”(单线程CRT).