So, I never resolved the problems with the Pine64-CPP library but I found an alternate.
First, I used bash scripts to make sure the Rock64 was working, and I had the right pin addresses.
https://github.com/Leapo/Rock64-BashGPIO
I used the table table from this website to correctly identify the gpio indices.
https://github.com/Leapo/Rock64-R64.GPIO...GPIO-Modes
I used the items from the column lableled GPIO# (ROCK)
Lastly, I used the GPIO Class from the following.
Even though it is was created for the Raspberry Pi, I found that it correctly manipulated the files in /sys/class/gpio on my Rock64.
https://github.com/halherta/RaspberryPi-GPIOClass-v2
Note: I have only tested the GPIO read function, since that is what I'm trying to do for my project.
Edit 2/20/19
The GPIO Class approach only worked in C++. For a C version, I used the sysfs code from this site:
https://elinux.org/RPi_GPIO_Code_Samples
However, to use the Rock64 GPIO assignments from 100 to 103, I needed to change #define BUFFER_MAX 3 to #define BUFFER_MAX 4.
This may break things for two digit GPIO assignments. I didn't really test that
First, I used bash scripts to make sure the Rock64 was working, and I had the right pin addresses.
https://github.com/Leapo/Rock64-BashGPIO
I used the table table from this website to correctly identify the gpio indices.
https://github.com/Leapo/Rock64-R64.GPIO...GPIO-Modes
I used the items from the column lableled GPIO# (ROCK)
Lastly, I used the GPIO Class from the following.
Even though it is was created for the Raspberry Pi, I found that it correctly manipulated the files in /sys/class/gpio on my Rock64.
https://github.com/halherta/RaspberryPi-GPIOClass-v2
Note: I have only tested the GPIO read function, since that is what I'm trying to do for my project.
Edit 2/20/19
The GPIO Class approach only worked in C++. For a C version, I used the sysfs code from this site:
https://elinux.org/RPi_GPIO_Code_Samples
However, to use the Rock64 GPIO assignments from 100 to 103, I needed to change #define BUFFER_MAX 3 to #define BUFFER_MAX 4.
This may break things for two digit GPIO assignments. I didn't really test that