Forum Discussion

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

Linker problem with SDK 13.1

Hi people,

I have some linker error happening with the SDK 13.1. To diagnose a bit, I tried running the examples from 13.0 found in "$(ALTERAOCLSDKROOT)/designs/", which are not provided anymore with 13.1 from what I have seen, and I get the same errors as in my own project. Here they are:

1>alteracl.lib(acl_program.obj) : error LNK2001: unresolved external symbol load_autodiscovery_xml

1>alteracl.lib(acl_program.obj) : error LNK2001: unresolved external symbol load_board_spec_xml

You will guess this is using Visual Studio. My board is a Nallatech PCIe-385N and the computer is running Windows 7.

Does anybody have an idea where the problem might be?

Thanks a bunch,

Smith

3 Replies

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

    Oh yes that was it. There is an extra dependency in 13.1, which is "acl_hostxml.lib". Thanks a bunch!

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

    If you take a look at the makefile that comes with the design examples you'll see the makefile opens a shell that runs the aocl link-config command. That way you can have your makefile stay up to date with the paths/libraries that need to be included for future releases automatically.