Forums - undefined reference to `hexagon_sim_read_cycles'

5 posts / 0 new
Last post
undefined reference to `hexagon_sim_read_cycles'
phalgunb
Join Date: 6 Oct 14
Posts: 18
Posted: Mon, 2014-10-20 02:19

hi

I have a built library and i am linking that library to a executable. But when i try to build the executable i get the following error.

undefined reference to `hexagon_sim_read_cycles'

I have included the corresponding header file hexagon_sim_timer.h but yet it doesnot build and gives me the same error. Please help me out.

thanks

  • Up0
  • Down0
Himateja Reddy
Join Date: 22 Aug 14
Posts: 9
Posted: Mon, 2014-10-20 03:27

Hi ,

       libhexagon.a library in tools has the this definitions. Please link this library.

 

Thanks & Regards,

Himateja

  • Up0
  • Down0
phalgunb
Join Date: 6 Oct 14
Posts: 18
Posted: Mon, 2014-10-20 03:35

but there are many libhexagon.a in the hexagon_tools directory which one to link??

  • Up0
  • Down0
phalgunb
Join Date: 6 Oct 14
Posts: 18
Posted: Mon, 2014-10-20 03:52

i have used the one in the gnu/hexagon/lib/v4 /libhexagon.a

it works but there are many other similar files in other directories are they the same library file or different.If yes can we link it to any of those similarly named files.

Thanks

  • Up0
  • Down0
Himateja Reddy
Join Date: 22 Aug 14
Posts: 9
Posted: Mon, 2014-10-20 04:36

Hi phalgunb,

          The many libhexagon.a that are found are for different architecture(e.g., V4, V5). Choose the file in the particular architecture based on the ADSP image you are using.

 

Thanks & Regards,

Himateja

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.