Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16720 Discussions

Linker problem with SDK 13.1

Altera_Forum
Honored Contributor II
1,155 Views

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
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
395 Views

Try running "aocl link-config" and picking out the libraries that are listed. The old 13.0 example may not include all of the necessary libraries. Also, the new design example are located at: 

 

http://www.altera.com/support/examples/opencl/opencl.html
0 Kudos
Altera_Forum
Honored Contributor II
395 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
395 Views

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.

0 Kudos
Reply