CC_INVAILD_INDEX was defined in ccCArray.h. But the new Vector<T> will not include that header file.