UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor
239 Views
Registered: ‎08-27-2018

Compiling sds_clock_counter() function without sds compilers

Hi

I wanted to use the following perf_counter in a C++ application (without using sds compiler)

https://www.xilinx.com/html_docs/xilinx2018_2/sdsoc_doc/xlp1524548526775.html

As I manually indicated the location of sds_lib.h header file, the compiler found it; but it could not recognise the sds_clock_counter() function

undefined reference to `sds_clock_counter`

Can you please help me how I can compile the sds_clock_counter() function without sds compiler?

Cheers

0 Kudos
1 Reply
Explorer
Explorer
182 Views
Registered: ‎10-21-2015

Re: Compiling sds_clock_counter() function without sds compilers

Hi

Did you compile your app with -lsds_lib option ?

$ nm /opt/Xilinx/SDx/2018.2/target/aarch64-linux/lib/libsds_lib.a | grep sds_clock_counter
0000000000000348 T sds_clock_counter
                 U sds_clock_counter