cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
438 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
Highlighted
Voyager
Voyager
381 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