I have created an application using the AMDTPowerProfileAPI api in AMD_CodeXL_Linux_x86_64_1.8.9654/SDK/AMDTPowerProfile/bin/x86_64/
When I attempt to link with libAMDTPowerProfileAPI.so, I get linker errors:
./lib/libAMDTPowerProfileAPI.so: undefined reference to `osCriticalSectionLocker::osCriticalSectionLocker(osCriticalSection&)'
./lib/libAMDTPowerProfileAPI.so: undefined reference to `osCriticalSectionLocker::leaveCriticalSection()'
./lib/libAMDTPowerProfileAPI.so: undefined reference to `osCriticalSectionLocker::~osCriticalSectionLocker()'
./lib/libAMDTPowerProfileAPI.so: undefined reference to `osCriticalSection::osCriticalSection()'
./lib/libAMDTPowerProfileAPI.so: undefined reference to `osCriticalSection::~osCriticalSection()'
collect2: error: ld returned 1 exit status
I would call this a bug. Please may I have the correct linker flags to use this library. It is not given in the documentation.
Thanks.