问题描述
当尝试使用 GitHub Actions 上的 cl.exe 为 Windows 编译 libuv 时,我们收到此错误:
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt_memcpy_s.h(77):
error C2065: 'errno': undeclared identifier
这是build script的开始:
- name: build x64
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cl /c /MT -Iinclude -Iinclude\uv -Isrc -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0600 ${{ env.soURCES }}
我也试过没有 /MT
但结果是一样的。
似乎与此 corecrt_memcpy_s.h
的错误无关(在发布时),因此此问题对其他人有用。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)