Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法解析的外部符号 __imp___p__fmode #32

Closed
augustheart opened this issue May 24, 2018 · 5 comments

Comments

@augustheart
Copy link

commented May 24, 2018

在编译luajit的x64版本时候报错。
link /nologo /DLL /out:lua51.dll lj_.obj lib_.obj
正在创建库 lua51.lib 和对象 lua51.exp
lj_clib.obj : error LNK2019: 无法解析的外部符号 __imp___p__fmode,该符号在函数 clib_getsym 中被引用

使用的是luajit2.0.5,已经在msvcbuild.bat文件中手动改为MD模式
@set LJCOMPILE=cl /MD /nologo /c /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_STDIO_INLINE=__declspec(dllexport)__inline

@augustheart

This comment has been minimized.

Copy link
Author

commented May 24, 2018

使用的命令是msvcbuild.bat STATIC

@mingkuang-Chuyu

This comment has been minimized.

Copy link
Contributor

commented May 24, 2018

确认问题,稍后会在这里提供临时解决版本。

@mingkuang-Chuyu

This comment has been minimized.

Copy link
Contributor

commented May 24, 2018

临时解决方案

下载 temp.zip,然后替换 本地VC-LTL文件即可。
temp.zip

感谢你的支持

@mingkuang-Chuyu

This comment has been minimized.

Copy link
Contributor

commented May 24, 2018

3.0.0.3-alpha1已经包含了对此问题的修复。

@augustheart

This comment has been minimized.

Copy link
Author

commented May 24, 2018

这么快就修复了,辛苦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.