Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

Emulation Error - Hello World

Hi, I am trying to run the hello world design example downloaded from Altera using the emulator on Windows 8.1 with Visual Studio 2015. When I try to run "aoc -march=emulator -v device/hello_world.cl -o bin/hello_world_emulation.aocx", i get the linker error regarding to "kernel32.lib".

By referring to this thread, https://www.alteraforum.com/forum/showthread.php?t=46646

I somehow fix the error by manually added additional path (C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64) to LIB environment variable.

But, i still get the error: "Linker Failed"

This is the output i get from my "hello_world.log" file:

LINK : fatal error LNK1104: cannot open file 'ucrt.lib'

It is possible cause by I didn't manage to run the "äocl_diagnose" successfully??

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    SW prerequisites from getting started guide: "For Windows systems, use Microsoft Visual Studio Professional version 2010 or

    later".

    I had exactly the same issue and the solution was "Kernel32.lib" file is located in "X:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib\x64" directory and this is the directory you have to add to LIB variable. (This is from another thread: http://www.alteraforum.com/forum/showthread.php?t=46646).

    It is either I am missing something or documentation requires improvement