Some more info.
The error received on Onion is:
ENOSYS : "Function not implemented"
Compiling, linking and running the same application for Ubuntu 64 bit on VM works using the following:
g++ *.cpp -Wall -lrt -v
Looks like your connection to Community was lost, please wait while we try to reconnect.