sorry, was away, having a look now.
you do need to declare functions in either ansible_arc.h (or if you declare in ansible_arc.c do it before they are called or assigned). i tried a quick fix but there are other valid compilation errors - where do you define mArcLevels? that should go to main.h (see where mArcLevels is defined).
a good way to approach this might be making smaller changes and then trying to compile after each step.