Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

error LNK2005: printf 已经在 msvcrt_Platform.lib(msvcrt.dll) 中定义 #68

Closed
MouriNaruto opened this issue Mar 8, 2021 · 2 comments

Comments

@MouriNaruto
Copy link
Member

编译输出

1>legacy_stdio_definitions.lib(legacy_stdio_definitions.obj) : error LNK2005: printf 已经在 msvcrt_Platform.lib(msvcrt.dll) 中定义
1>legacy_stdio_definitions.lib(legacy_stdio_definitions.obj) : error LNK2005: __imp_printf 已经在 msvcrt_Platform.lib(msvcrt.dll) 中定义

编译环境

1>  VC-LTL Path      : C:\Users\Mouri\.nuget\packages\vc-ltl\4.1.1\build\native\
1>  VC Tools Version : 14.28.29333
1>  UCRT Version     : 10.0.19041.0
1>  Platform         : ARM
1>  Using VC-LTL Vista Advanced Mode

编译项目

https://github.com/lvgl/lv_sim_visual_studio

@MouriNaruto MouriNaruto changed the title VC-LTL 项目编译 Bug error LNK2005: printf 已经在 msvcrt_Platform.lib(msvcrt.dll) 中定义 Mar 8, 2021
@mingkuang-Chuyu
Copy link
Collaborator

lib.zip

并且替换 C:\Users\Mouri\.nuget\packages\yy.ucrt.shared\4.1.1.7\build\native\lib 试试

@mingkuang-Chuyu
Copy link
Collaborator

mingkuang-Chuyu commented Mar 10, 2021

LibMaker工具在arm平台存在Bug,已经修复 请等待新版本。

@mingkuang-Chuyu mingkuang-Chuyu added 进度:等待发布 问题处理完成,请等待新版本。 and removed 方案:已经修复 labels Mar 10, 2021
@mingkuang-Chuyu mingkuang-Chuyu removed the 进度:等待发布 问题处理完成,请等待新版本。 label May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants