PWM & ADC on BBB using C++

I am new to Beaglebone black & embedded linux programming. I am looking for C/C++ library for PWM and ADC.

I am compiling the C++ library given by SaadAhmad but i am unable to run the binary file, it is returning with errors like “terminate called after throwing an instance of ‘std::ios_base::failure’
what(): basic_ios::clear
Aborted”

Any body got a C/C++ library for PWM & ADC.

Thanks & Regards,
Sai

Dear Mr Sai

Am looking to get in touch with you regarding your good work.

Please do connect

Thanks and regards

Aditya