I tried many solutions, but can't get my program work.
main.h
short NWMP_acc[3];
short NWMP_gyro[3];
main.cpp
printf_( "%i,%i,%i, g\n", NWMP_gyro[YAW],NWMP_gyro[PITCH],NWMP_gyro[ROLL]);
other.cpp
#include "main.h"
NWMP_gyro[YAW] = (((buf[3]>>2)<<8) + buffer[0]);//multiple definition of `NWMP_gyro'
If I change to "extern short NWMP_acc[3];" than I get an error "undefined reference to `NWMP_acc'"
printf_looks like C not C++, but very odd C at that.