MyFPGA Forum

 找回密码
 注册
搜索
查看: 1494|回复: 0

【FAQ】编译hello_world内核,报错cannot open input file "msvcrt.lib"

[复制链接]
发表于 2023-4-10 15:32:10 | 显示全部楼层 |阅读模式
Q:Windows系统环境中,还是在aoc命令中加 -march=emulator 编译DE5-Net v16.1 OpenCL BSP里的hello_world内核程序,又报错提示fata error LINK1181:cannot open input file "msvcrt.lib",这要如何解决?
hello_world_3.jpg
A:这也是OpenCL的仿真环境设置不正确,需要添加其他编译runtime库文件到环境变量LIB,即
将C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\amd64这两个路径添加到LIB环境变量。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|MyFPGA

GMT+8, 2024-3-29 10:14 , Processed in 0.038360 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表