Aha, I didnt know I had to declare it at the top of the program

Code:
extern "C"{ #include "cio.h"}
and then insert it at the begining of each function definition
Code:
extern "C" int whatever(int a){}