msp430.h defines the preprocessor variable "N", which is a frequently used template parameter name. These two do not go together.