Rock/wiringX
WiringX is a modular approach to several GPIO interfaces. For Rock/pro/lite, wiringX provides interface for GPIO, I2C, SPI and ISR. You can get the source code and find the way to use it on github. Firstly, get wiringX from github:
git clone https://github.com/wiringX/wiringX.git cd wiringX
or
wget https://github.com/wiringX/wiringX/archive/master.zip unzip master.zip cd wiringX-master
Then, install wiringX follow the way on github. When you compile you source, add the dynamic lib like:
'gcc -o test test.c /usr/local/lib/libwiringX.a