MyFPGA Forum

标题: 【FAQ】编译hello_world内核,报错cannot open input file "msvcrt.lib" [打印本页]

作者: bingxia    时间: 2023-4-10 15:32
标题: 【FAQ】编译hello_world内核,报错cannot open input file "msvcrt.lib"
Q:Windows系统环境中,还是在aoc命令中加 -march=emulator 编译DE5-Net v16.1 OpenCL BSP里的hello_world内核程序,又报错提示fata error LINK1181:cannot open input file "msvcrt.lib",这要如何解决?

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环境变量。





欢迎光临 MyFPGA Forum (http://www.myfpga.org/discuz/) Powered by Discuz! X3