We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
如果其他人遇到这种情况:BlockZero 是一个似乎将内存块归零的函数。它位于 CoreServices 中并在 MacMemory.h 中定义。
问题是该功能对于编译为 64 位的应用程序不可用(这是默认设置;因此是我的问题)。要解决此问题,请使用 BSD 函数 bzero。
资料来源: http://developer.apple.com /mac/library/documentation/Carbon/Conceptual/Carbon64BitGuide/OtherAPIChanges/OtherAPIChanges.html
In case anyone else runs into this: BlockZero is a function that seems to zero a block of memory. It lives in CoreServices and is defined in MacMemory.h.
The problem is that the function is unavailable to apps being compiled as 64bit (which is the default; hence my problem). To fix this issue use the BSD function bzero.
Source: http://developer.apple.com/mac/library/documentation/Carbon/Conceptual/Carbon64BitGuide/OtherAPIChanges/OtherAPIChanges.html