Refer to this article:
https://wiki.radxa.com/Rock/wiringX
and:
I have successfully built and installed the dynamic link library on my system and compiled an application to test the PIN_3 outputs with the sample code, but I can’t seem to successfully control the GPIO ports.