This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS giving weird error with TM4C1294XL

Updated Question:

I modified the Hello.c file for the TM4C1294XL with the following functions i.e. the Main function is the same as the original Hello.c file in the Example set but I have added additional functions above the main function which can be seen as follows :

#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <stdlib.h>
#include <math.h>
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/gpio.h"
#include "drivers/pinout.h"
#include "driverlib/pin_map.h"
#include "driverlib/rom.h"
#include "driverlib/rom_map.h"
#include "driverlib/sysctl.h"
#include "driverlib/uart.h"
#include "utils/uartstdio.h"

uint32_t g_ui32SysClock;
#ifdef DEBUG
void
__error__(char *pcFilename, uint32_t ui32Line)
{
}
#endif


// MY FUNCTIONS:
float InitialArrayValue=-999;
//=======================================================================
typedef struct ArrayStruct{
  float * array;
  size_t used;
  size_t size;
} Array;

// INITIALIZE ARRAY
void
initArray(Array *a, size_t initialSize) {
  a->array = (float *)malloc(initialSize * sizeof(float));
  a->used = 0;
  a->size = initialSize;
}

// INSERT ELEMENT INTO ARRAY
void
insertArray(Array *a, float element) {
  if (a->used+1 == a->size) {
    a->size *= 2;
    a->array = (float *)realloc(a->array, a->size * sizeof(float));
  }
  a->array[(a->used)+1] = element;
  a->used=a->used+1;
}

// FREE ARRAY
void
freeArray(Array *a) {
  free(a->array);
  a->array = NULL;
  a->used = 0;
  a->size = 0;
}

// INITIALIZE NULL ARRAY
void
InitNullArray(Array * ArrayPtr){
  ArrayPtr->array=NULL;
  freeArray(ArrayPtr);
  ArrayPtr->array = (float *)malloc(1 * sizeof(float));
  ArrayPtr->used = 0;
  ArrayPtr->size = 1;
  ArrayPtr->array[0] = InitialArrayValue;
}

// INITIALIZE ZEROES ARRAY
void
InitZeroArray(Array * ArrayPtr,int ArraySize){
  ArrayPtr->array=NULL;
  freeArray(ArrayPtr);
  ArrayPtr->array = (float *)malloc((ArraySize+1) * sizeof(float));
  ArrayPtr->used = ArraySize;
  ArrayPtr->size = ArraySize+1;

  int iTemp;
  for(iTemp=0;iTemp<=ArraySize;iTemp++)
  {if(iTemp==0){ArrayPtr->array[iTemp]=InitialArrayValue;}
  else{ArrayPtr->array[iTemp]=0;}}
}

// ADD ARRAY TO ARRAY ( A=[A;B] )
void
AddArrToArr(Array * InitialArray, Array * NewArray){
	int iTemp;
	for(iTemp=1;iTemp<=NewArray->used;iTemp++){
		insertArray(InitialArray,NewArray->array[iTemp]);
	}
}

// FIND MAX INDEX
int
FindMaxIndex(Array *TempArray){
	float Max=-999;
	int IndexValue;
	int iTemp;
	for(iTemp=1;iTemp<=TempArray->used;iTemp++){
	if(TempArray->array[iTemp]>Max){
	Max=TempArray->array[iTemp];IndexValue=iTemp;}}
	return IndexValue;
}


// INCREMENT/DECREMENT ARRAY VALUES
void
IncrementArr(Array *TempArray,float IncrementValue){
	int iTemp;
	for(iTemp=1;iTemp<=TempArray->used;iTemp++){
	TempArray->array[iTemp]=TempArray->array[iTemp]+IncrementValue;
	}
}

// COPY ARRAY WITH CERTAIN INDEX LOCATIONS
void
CustomCopyArr(Array *VictimArray,int StartVal, int EndVal, Array* ResultArray){

	InitNullArray(ResultArray);

	int iTemp;
	for(iTemp=StartVal;iTemp<=EndVal;iTemp++){
	insertArray(ResultArray,VictimArray->array[iTemp]);
	}
}


// COPY ARRAY
void
CopyArr(Array *VictimArray,Array* ResultArray){
	InitNullArray(ResultArray);
	int iTemp;
	for(iTemp=1;iTemp<=VictimArray->used;iTemp++){
	insertArray(ResultArray,VictimArray->array[iTemp]);
	}
}

// FIND FUNCTION
void
FindFunc(Array *VictimArray,Array* ResultArray){
	InitNullArray(ResultArray);

	int iTemp;
	for(iTemp=1;iTemp<=VictimArray->used;iTemp++){
		if(VictimArray->array[iTemp] != 0){
		insertArray(ResultArray,iTemp);
		}
	}
}

// CUSTOM ADD ARRAY TO ARRAY ( A=[A;B] )
void
CustomAddDiffArrays(Array * InitialArray,Array * NewArray1, int InitStartVal, int InitEndVal, Array * NewArray2, int NewStartVal, int NewEndVal){

	Array TempArray; InitNullArray(&TempArray);
	InitNullArray(InitialArray);

  	CustomCopyArr(NewArray1,InitStartVal,InitEndVal,&TempArray);
	int iTemp;
	for(iTemp=1;iTemp<=TempArray.used;iTemp++){insertArray(InitialArray,TempArray.array[iTemp]);}

  	InitNullArray(&TempArray);
	CustomCopyArr(NewArray2,NewStartVal,NewEndVal,&TempArray);

	for(iTemp=1;iTemp<=TempArray.used;iTemp++){insertArray(InitialArray,TempArray.array[iTemp]);}

	freeArray(&TempArray);
}


// CUSTOM ADD SAME ARRAY TO ARRAY ( A=[A;B] )
void
CustomAddArrToArr(Array * InitialArray,int InitStartVal, int InitEndVal, Array * NewArray, int NewStartVal, int NewEndVal){

	Array TempArray; InitNullArray(&TempArray);
	CustomCopyArr(InitialArray,InitStartVal,InitEndVal,&TempArray);

	InitNullArray(InitialArray);

	int iTemp;
	for(iTemp=1;iTemp<=TempArray.used;iTemp++){insertArray(InitialArray,TempArray.array[iTemp]);}

	InitNullArray(&TempArray);
	CustomCopyArr(NewArray,NewStartVal,NewEndVal,&TempArray);

	for(iTemp=1;iTemp<=TempArray.used;iTemp++){insertArray(InitialArray,TempArray.array[iTemp]);}

	freeArray(&TempArray);
}

// CUSTOM ADD CONSTANT TO ARRAY ( A=[A;B] )
void
CustomAddConsToArr(Array * InitialArray,int InitStartVal, int InitEndVal, float NewValue){

	Array TempArray; InitNullArray(&TempArray);
	CustomCopyArr(InitialArray,InitStartVal,InitEndVal,&TempArray);

	InitNullArray(InitialArray);

	int iTemp;
	for(iTemp=1;iTemp<=TempArray.used;iTemp++){insertArray(InitialArray,TempArray.array[iTemp]);}

	insertArray(InitialArray,NewValue);

	freeArray(&TempArray);
}

//CUSTOM ABS FUNCTION
float
CustomABS(float X){
if(X<0){X = -1*X; return X;}
else{return X;}
}

// ADD CONSTANT TO ARRAY ( A=[A;C] )
void
AddConsToArr(Array * InitialArray, float NewValue){

		insertArray(InitialArray,NewValue);
}

// COPY SUBARRAY INTO SAME ARRAY
void
CopySameArr(Array *VictimArray,int StartVal, int EndVal){

	Array TempArray; InitNullArray(&TempArray);CopyArr(VictimArray,&TempArray);

	InitNullArray(VictimArray);

	int iTemp;
	for(iTemp=StartVal;iTemp<=EndVal;iTemp++){
	insertArray(VictimArray,TempArray.array[iTemp]);
	}
	freeArray(&TempArray);
}


// SHOW CONTENTS OF ARRAY
void
ShowArray(Array * GivenArray){
	int iTemp;
	for(iTemp=1;iTemp<=GivenArray->used;iTemp++){
		printf("Array Index %d",iTemp);
		printf(" has value %0.3f \n",GivenArray->array[iTemp]);
	}
	printf("SIZE:  %d",GivenArray->size);
	printf("   LENGTH: %d \n\n",GivenArray->used);
}

// ABSOLUTE ALL OF THE VALUES OF THE ARRAY
void
AbsFull(Array * Temp){
	int iTemp;
	for(iTemp=1;iTemp<=Temp->used;iTemp++){
		Temp->array[iTemp]=CustomABS(Temp->array[iTemp]);
	}
}

// CUSTOM SUBTRACT ARRAY (RESULT = A - B)
void
CustomSubArr(Array * ResultArray, Array* A, int StartValA, int EndValA, Array *B, int StartValB, int EndValB){

	InitNullArray(ResultArray);

	Array TempA; InitNullArray(&TempA);CustomCopyArr(A,StartValA,EndValA,&TempA);
	Array TempB; InitNullArray(&TempB);CustomCopyArr(B,StartValB,EndValB,&TempB);

	int iTemp;
	for(iTemp=1;iTemp<=TempA.used;iTemp++){
		insertArray(ResultArray,TempA.array[iTemp]-TempB.array[iTemp]);
	}
	freeArray(&TempA);
	freeArray(&TempB);
}


// GET THE RMS VALUE OF THE WHOLE ARRAY
float
RMSFull(Array * Temp){
	float Sum=0;
	int iTemp;
	for(iTemp=1;iTemp<=Temp->used;iTemp++){
		Sum=Sum+pow(Temp->array[iTemp],2);
	}
	Sum=(float)(Sum/(Temp->used));Sum=(float)(pow(Sum,0.5));return Sum;
}

// GET THE MEAN VALUE OF THE WHOLE ARRAY
float
MeanFull(Array * Temp){
	float Sum=0;
	int iTemp;
	for(iTemp=1;iTemp<=Temp->used;iTemp++){
		Sum=Sum+Temp->array[iTemp];
	}
	Sum=(float)(Sum/(Temp->used));return Sum;
}

// GET RMS VALUE OF SUB-ARRAY AS PER MATLAB INDEXES
float
RMSMatlabIndex(Array * Temp, int StartVal,int EndVal){
	float Sum=0;
	int iTemp;
	for(iTemp=StartVal;iTemp<=EndVal;iTemp++){
		Sum=Sum+pow(Temp->array[iTemp],2);
	}
	Sum=Sum/(EndVal-StartVal+1);Sum=pow(Sum,0.5);return Sum;
}

// GET MEAN VALUE OF SUB-ARRAY AS PER MATLAB INDEXES
float
MeanMatlabIndex(Array * Temp, int StartVal,int EndVal){
	float Sum=0;

	int iTemp;
	for(iTemp=StartVal;iTemp<=EndVal;iTemp++){
	Sum=Sum+Temp->array[iTemp];
	}
	Sum=Sum/(EndVal-StartVal+1);return Sum;
}

// ADD VALUE AT SPECIFIC INDEX WHILE MAKING SURE OF HAVING ENOUGH MEMORY
void
AddAtSpecificIndex(Array * InputArray,float Value, int Index){

	while(Index+1>InputArray->size){
		InputArray->size *= 2;
		InputArray->array = (float *)realloc(InputArray->array, InputArray->size * sizeof(float));
	}

if(InputArray->used==0 && Index!=0){
	if(Index>InputArray->used){
		int i;
		for(i=1;i<=Index;i++){
			InputArray->array[i]=0;
		}
		InputArray->used=Index;
	}
}
else if(InputArray->used!=0){
	if(Index>InputArray->used){
		int i;
		for(i=InputArray->used+1;i<=Index;i++){
			InputArray->array[i]=0;
		}
		InputArray->used=Index;
	}
}
InputArray->array[Index]=Value;
}



// CONVOLVE TWO ARRAYS FUNCTION
void
ConvolveArrays(Array * SignalArray, Array * KernelArray, Array * ResultArray){

int m=SignalArray->used;
int x=KernelArray->used;

InitNullArray(ResultArray);

	int n;
	for (n=1; n <= m+x-1; n++){
	int kmin, kmax, k;
	AddAtSpecificIndex(ResultArray,0,n);

    if(n>=x){kmin= n-x+1;}
    else{kmin=1;}

    if(n < m){kmax = n;}
    else{kmax=m;}

    	for (k=kmin;k<=kmax;k++)
    	{float TempVal=ResultArray->array[n]+ SignalArray->array[k] * KernelArray->array[n-k+1];
		AddAtSpecificIndex(ResultArray,TempVal,n);}
	}

}

// DWT_ATROUS FUNCTION
void
dwt_atrous_5(Array * SignalArray, Array * LP_CO_1,Array *HP_CO_1, Array * ResultArray1,Array * ResultArray2){
int TempCounter;

Array HP_CO_2; InitZeroArray(&HP_CO_2,2*(HP_CO_1->used));		// CO_2

Array LP_CO_2; InitZeroArray(&LP_CO_2,2*(LP_CO_1->used));

TempCounter=1;
int i;
for(i=1;i<=(2*(HP_CO_1->used));i++){if(i%2==1){HP_CO_2.array[i]=HP_CO_1->array[TempCounter];TempCounter=TempCounter+1;}}HP_CO_2.used=(2*(HP_CO_1->used));

TempCounter=1;
for(i=1;i<=(2*(LP_CO_1->used));i++){if(i%2==1){LP_CO_2.array[i]=LP_CO_1->array[TempCounter];TempCounter=TempCounter+1;}}LP_CO_2.used=(2*(LP_CO_1->used));

Array HP_CO_3; InitZeroArray(&HP_CO_3,2*(HP_CO_2.used));		// CO_3
Array LP_CO_3; InitZeroArray(&LP_CO_3,2*(LP_CO_2.used));

TempCounter=1;
for(i=1;i<=(2*(HP_CO_2.used));i++){if(i%2==1){HP_CO_3.array[i]=HP_CO_2.array[TempCounter];TempCounter=TempCounter+1;}}HP_CO_3.used=(2*(HP_CO_2.used));

TempCounter=1;
for(i=1;i<=(2*(LP_CO_2.used));i++){if(i%2==1){LP_CO_3.array[i]=LP_CO_2.array[TempCounter];TempCounter=TempCounter+1;}}LP_CO_3.used=(2*(LP_CO_2.used));

Array HP_CO_4; InitZeroArray(&HP_CO_4,2*(HP_CO_3.used));		// CO_4
Array LP_CO_4; InitZeroArray(&LP_CO_4,2*(LP_CO_3.used));

TempCounter=1;
for(i=1;i<=(2*(HP_CO_3.used));i++){if(i%2==1){HP_CO_4.array[i]=HP_CO_3.array[TempCounter];TempCounter=TempCounter+1;}}HP_CO_4.used=(2*(HP_CO_3.used));

TempCounter=1;
for(i=1;i<=(2*(LP_CO_3.used));i++){if(i%2==1){LP_CO_4.array[i]=LP_CO_3.array[TempCounter];TempCounter=TempCounter+1;}}LP_CO_4.used=(2*(LP_CO_3.used));

Array HP_CO_5; InitZeroArray(&HP_CO_5,2*(HP_CO_4.used));		// CO_5
Array LP_CO_5; InitZeroArray(&LP_CO_5,2*(LP_CO_4.used));

TempCounter=1;
for(i=1;i<=(2*(HP_CO_4.used));i++){if(i%2==1){HP_CO_5.array[i]=HP_CO_4.array[TempCounter];TempCounter=TempCounter+1;}}HP_CO_5.used=(2*(HP_CO_4.used));

TempCounter=1;
for(i=1;i<=(2*(LP_CO_4.used));i++){if(i%2==1){LP_CO_5.array[i]=LP_CO_4.array[TempCounter];TempCounter=TempCounter+1;}}LP_CO_5.used=(2*(LP_CO_4.used));

Array CD1; InitNullArray(&CD1);
Array CD2; InitNullArray(&CD2);
Array CD3; InitNullArray(&CD3);
Array CD4; InitNullArray(&CD4);
Array CD5; InitNullArray(&CD5);

Array CA1; InitNullArray(&CA1);
Array CA2; InitNullArray(&CA2);
Array CA3; InitNullArray(&CA3);
Array CA4; InitNullArray(&CA4);
Array CA5; InitNullArray(&CA5);

ConvolveArrays(SignalArray,HP_CO_1,&CD1);
ConvolveArrays(SignalArray,LP_CO_1,&CA1);

ConvolveArrays(&CA1,&HP_CO_2,&CD2);
ConvolveArrays(&CA1,&LP_CO_2,&CA2);

ConvolveArrays(&CA2,&HP_CO_3,&CD3);
ConvolveArrays(&CA2,&LP_CO_3,&CA3);

ConvolveArrays(&CA3,&HP_CO_4,&CD4);
ConvolveArrays(&CA3,&LP_CO_4,&CA4);



free(ResultArray1->array); ResultArray1->array = NULL; ResultArray1->array = (float *)malloc(1 * sizeof(float));
ResultArray1->used = 0; ResultArray1->size = 1;ResultArray1->array[0] = InitialArrayValue;

free(ResultArray2->array); ResultArray2->array = NULL; ResultArray2->array = (float *)malloc(1 * sizeof(float));
ResultArray2->used = 0; ResultArray2->size = 1;ResultArray2->array[0] = InitialArrayValue;


CopyArr(&CD3,ResultArray1);
CopyArr(&CD4,ResultArray2);

freeArray(&HP_CO_2);freeArray(&LP_CO_2);
freeArray(&HP_CO_3);freeArray(&LP_CO_3);
freeArray(&HP_CO_4);freeArray(&LP_CO_4);
freeArray(&HP_CO_5);freeArray(&LP_CO_5);
freeArray(&CD1);freeArray(&CA1);
freeArray(&CD2);freeArray(&CA2);
freeArray(&CD3);freeArray(&CA3);
freeArray(&CD4);freeArray(&CA4);
freeArray(&CD5);freeArray(&CA5);
}
//=======================================================================



// HELLO.C FILE AS IS IN THE EXAMPLE FOLDER
void
ConfigureUART(void)
{
    ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
    ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);
    ROM_GPIOPinConfigure(GPIO_PA0_U0RX);
    ROM_GPIOPinConfigure(GPIO_PA1_U0TX);
    ROM_GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
    UARTStdioConfig(0, 115200, g_ui32SysClock);
}

int
main(void)
{
// BOARD INITIALIZATIONS :
	g_ui32SysClock = MAP_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ |
                SYSCTL_OSC_MAIN | SYSCTL_USE_PLL |
                SYSCTL_CFG_VCO_480), 120000000);
    PinoutSet(false, false);
    ROM_GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, GPIO_PIN_1);
    ConfigureUART();

// BLINKY AND HELLO WORLD PROGRAM:
    UARTprintf("Hello, world!\n");

    while(1)
    {
        LEDWrite(CLP_D1, 1);
        SysCtlDelay(g_ui32SysClock / 10 / 3);
        LEDWrite(CLP_D1, 0);
        SysCtlDelay(g_ui32SysClock / 10 / 3);
    }
}

However, I get the following Errors:

Build Console:

**** Build of configuration Debug for project hello ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
'Building file: ../hello.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/CCS TivaWare Tools/TM4C1294 Files/examples/boards/ek-tm4c1294xl" --include_path="C:/CCS TivaWare Tools/TM4C1294 Files" --advice:power=all -g --float_operations_allowed=all --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="hello.pp"  "../hello.c"
"../hello.c", line 252: remark #1532-D: (ULP 5.3) Detected printf() operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive
"../hello.c", line 253: remark #1532-D: (ULP 5.3) Detected printf() operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive
"../hello.c", line 255: remark #1532-D: (ULP 5.3) Detected printf() operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive
"../hello.c", line 256: remark #1532-D: (ULP 5.3) Detected printf() operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive
"../hello.c", line 393: warning #179-D: variable "TempCounter" was declared but never referenced
"../hello.c", line 397: error #68: expected a "}"
"../hello.c", line 397: error #80: expected a type specifier
"../hello.c", line 397: error #80: expected a type specifier
"../hello.c", line 397: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 397: error #148: declaration is incompatible with "void InitZeroArray(Array *, int)" (declared at line 80)
"../hello.c", line 399: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 401: error #171: expected a declaration
"../hello.c", line 403: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 403: error #150: variable "TempCounter" has already been initialized
"../hello.c", line 404: error #171: expected a declaration
"../hello.c", line 406: error #80: expected a type specifier
"../hello.c", line 406: error #80: expected a type specifier
"../hello.c", line 406: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 407: error #80: expected a type specifier
"../hello.c", line 407: error #80: expected a type specifier
"../hello.c", line 407: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 409: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 409: error #150: variable "TempCounter" has already been initialized
"../hello.c", line 410: error #171: expected a declaration
"../hello.c", line 412: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 412: error #150: variable "TempCounter" has already been initialized
"../hello.c", line 413: error #171: expected a declaration
"../hello.c", line 415: error #80: expected a type specifier
"../hello.c", line 415: error #80: expected a type specifier
"../hello.c", line 415: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 416: error #80: expected a type specifier
"../hello.c", line 416: error #80: expected a type specifier
"../hello.c", line 416: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 418: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 418: error #150: variable "TempCounter" has already been initialized
"../hello.c", line 419: error #171: expected a declaration
"../hello.c", line 421: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 421: error #150: variable "TempCounter" has already been initialized
"../hello.c", line 422: error #171: expected a declaration
"../hello.c", line 424: error #80: expected a type specifier
"../hello.c", line 424: error #80: expected a type specifier
"../hello.c", line 424: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 425: error #80: expected a type specifier
"../hello.c", line 425: error #80: expected a type specifier
"../hello.c", line 425: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 427: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 427: error #150: variable "TempCounter" has already been initialized
"../hello.c", line 428: error #171: expected a declaration
"../hello.c", line 430: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 430: error #150: variable "TempCounter" has already been initialized
"../hello.c", line 431: error #171: expected a declaration
"../hello.c", line 433: error #80: expected a type specifier
"../hello.c", line 433: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 433: error #148: declaration is incompatible with "void InitNullArray(Array *)" (declared at line 69)
"../hello.c", line 434: error #80: expected a type specifier
"../hello.c", line 434: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 435: error #80: expected a type specifier
"../hello.c", line 435: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 436: error #80: expected a type specifier
"../hello.c", line 436: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 437: error #80: expected a type specifier
"../hello.c", line 437: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 439: error #80: expected a type specifier
"../hello.c", line 439: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 440: error #80: expected a type specifier
"../hello.c", line 440: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 441: error #80: expected a type specifier
"../hello.c", line 441: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 442: error #80: expected a type specifier
"../hello.c", line 442: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 443: error #80: expected a type specifier
"../hello.c", line 443: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 445: error #41: expected an identifier
"../hello.c", line 445: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 445: warning #93-D: identifier-list parameters may only be used in a function definition
"../hello.c", line 445: error #148: declaration is incompatible with "void ConvolveArrays(Array *, Array *, Array *)" (declared at line 365)
"../hello.c", line 446: error #41: expected an identifier
"../hello.c", line 446: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 446: warning #93-D: identifier-list parameters may only be used in a function definition
"../hello.c", line 448: error #80: expected a type specifier
"../hello.c", line 448: error #80: expected a type specifier
"../hello.c", line 448: error #80: expected a type specifier
"../hello.c", line 448: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 449: error #80: expected a type specifier
"../hello.c", line 449: error #80: expected a type specifier
"../hello.c", line 449: error #80: expected a type specifier
"../hello.c", line 449: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 451: error #80: expected a type specifier
"../hello.c", line 451: error #80: expected a type specifier
"../hello.c", line 451: error #80: expected a type specifier
"../hello.c", line 451: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 452: error #80: expected a type specifier
"../hello.c", line 452: error #80: expected a type specifier
"../hello.c", line 452: error #80: expected a type specifier
"../hello.c", line 452: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 454: error #80: expected a type specifier
"../hello.c", line 454: error #80: expected a type specifier
"../hello.c", line 454: error #80: expected a type specifier
"../hello.c", line 454: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 455: error #80: expected a type specifier
"../hello.c", line 455: error #80: expected a type specifier
"../hello.c", line 455: error #80: expected a type specifier
"../hello.c", line 455: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 459: error #20: identifier "ResultArray1" is undefined
"../hello.c", line 459: error #18: expected a ")"
"../hello.c", line 459: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 459: error #148: declaration is incompatible with "void free(void *)" (declared at line 173 of "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/stdlib.h")
"../hello.c", line 459: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 459: error #66: expected a ";"
"../hello.c", line 459: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 459: error #66: expected a ";"
"../hello.c", line 460: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 460: error #66: expected a ";"
"../hello.c", line 460: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 460: error #66: expected a ";"
"../hello.c", line 460: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 460: error #66: expected a ";"
"../hello.c", line 462: error #20: identifier "ResultArray2" is undefined
"../hello.c", line 462: error #18: expected a ")"
"../hello.c", line 462: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 462: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 462: error #66: expected a ";"
"../hello.c", line 462: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 462: error #66: expected a ";"
"../hello.c", line 463: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 463: error #66: expected a ";"
"../hello.c", line 463: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 463: error #66: expected a ";"
"../hello.c", line 463: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 463: error #66: expected a ";"
"../hello.c", line 466: error #80: expected a type specifier
"../hello.c", line 466: error #760: variable "ResultArray1" is not a type name
"../hello.c", line 466: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 466: error #148: declaration is incompatible with "void CopyArr(Array *, Array *)" (declared at line 139)
"../hello.c", line 467: error #80: expected a type specifier
"../hello.c", line 467: error #760: variable "ResultArray2" is not a type name
"../hello.c", line 467: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 469: error #80: expected a type specifier
"../hello.c", line 469: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 469: error #148: declaration is incompatible with "void freeArray(Array *)" (declared at line 60)
"../hello.c", line 469: error #80: expected a type specifier
"../hello.c", line 469: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 470: error #80: expected a type specifier
"../hello.c", line 470: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 470: error #80: expected a type specifier
"../hello.c", line 470: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 471: error #80: expected a type specifier
"../hello.c", line 471: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 471: error #80: expected a type specifier
"../hello.c", line 471: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 472: error #80: expected a type specifier
"../hello.c", line 472: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 472: error #80: expected a type specifier
"../hello.c", line 472: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 473: error #80: expected a type specifier
"../hello.c", line 473: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 473: error #80: expected a type specifier
"../hello.c", line 473: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 474: error #80: expected a type specifier
"../hello.c", line 474: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 474: error #80: expected a type specifier
"../hello.c", line 474: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 475: error #80: expected a type specifier
"../hello.c", line 475: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 475: error #80: expected a type specifier
"../hello.c", line 475: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 476: error #80: expected a type specifier
"../hello.c", line 476: warning #78-D: this declaration has no storage class or type specifier
"../hello.c", line 476: error #80: expected a type specifier

>> Compilation failure
Error limit reached.
100 errors detected in the compilation of "../hello.c".
Compilation terminated.
gmake: *** [hello.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

Error Console:


Description	Resource	Path	Location	Type
#148 declaration is incompatible with "void ConvolveArrays(Array *, Array *, Array *)" (declared at line 365)	hello.c	/hello	line 445	C/C++ Problem
#148 declaration is incompatible with "void CopyArr(Array *, Array *)" (declared at line 139)	hello.c	/hello	line 466	C/C++ Problem
#148 declaration is incompatible with "void free(void *)" (declared at line 173 of "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/stdlib.h")	hello.c	/hello	line 459	C/C++ Problem
#148 declaration is incompatible with "void freeArray(Array *)" (declared at line 60)	hello.c	/hello	line 469	C/C++ Problem
#148 declaration is incompatible with "void InitNullArray(Array *)" (declared at line 69)	hello.c	/hello	line 433	C/C++ Problem
#148 declaration is incompatible with "void InitZeroArray(Array *, int)" (declared at line 80)	hello.c	/hello	line 397	C/C++ Problem
#150 variable "TempCounter" has already been initialized	hello.c	/hello	line 403	C/C++ Problem
#150 variable "TempCounter" has already been initialized	hello.c	/hello	line 409	C/C++ Problem
#150 variable "TempCounter" has already been initialized	hello.c	/hello	line 412	C/C++ Problem
#150 variable "TempCounter" has already been initialized	hello.c	/hello	line 418	C/C++ Problem
#150 variable "TempCounter" has already been initialized	hello.c	/hello	line 421	C/C++ Problem
#150 variable "TempCounter" has already been initialized	hello.c	/hello	line 427	C/C++ Problem
#150 variable "TempCounter" has already been initialized	hello.c	/hello	line 430	C/C++ Problem
#171 expected a declaration	hello.c	/hello	line 401	C/C++ Problem
#171 expected a declaration	hello.c	/hello	line 404	C/C++ Problem
#171 expected a declaration	hello.c	/hello	line 410	C/C++ Problem
#171 expected a declaration	hello.c	/hello	line 413	C/C++ Problem
#171 expected a declaration	hello.c	/hello	line 419	C/C++ Problem
#171 expected a declaration	hello.c	/hello	line 422	C/C++ Problem
#171 expected a declaration	hello.c	/hello	line 428	C/C++ Problem
#171 expected a declaration	hello.c	/hello	line 431	C/C++ Problem
#18 expected a ")"	hello.c	/hello	line 459	C/C++ Problem
#18 expected a ")"	hello.c	/hello	line 462	C/C++ Problem
#20 identifier "ResultArray1" is undefined	hello.c	/hello	line 459	C/C++ Problem
#20 identifier "ResultArray2" is undefined	hello.c	/hello	line 462	C/C++ Problem
#41 expected an identifier	hello.c	/hello	line 445	C/C++ Problem
#41 expected an identifier	hello.c	/hello	line 446	C/C++ Problem
#66 expected a ";"	hello.c	/hello	line 459	C/C++ Problem
#66 expected a ";"	hello.c	/hello	line 460	C/C++ Problem
#66 expected a ";"	hello.c	/hello	line 462	C/C++ Problem
#66 expected a ";"	hello.c	/hello	line 463	C/C++ Problem
#68 expected a "}"	hello.c	/hello	line 397	C/C++ Problem
#760 variable "ResultArray1" is not a type name	hello.c	/hello	line 466	C/C++ Problem
#760 variable "ResultArray2" is not a type name	hello.c	/hello	line 467	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 397	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 406	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 407	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 415	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 416	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 424	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 425	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 433	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 434	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 435	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 436	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 437	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 439	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 440	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 441	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 442	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 443	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 448	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 449	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 451	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 452	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 454	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 455	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 466	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 467	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 469	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 470	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 471	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 472	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 473	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 474	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 475	C/C++ Problem
#80 expected a type specifier	hello.c	/hello	line 476	C/C++ Problem
#179-D variable "TempCounter" was declared but never referenced	hello.c	/hello	line 393	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 397	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 399	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 403	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 406	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 407	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 409	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 412	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 415	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 416	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 418	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 421	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 424	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 425	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 427	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 430	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 433	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 434	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 435	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 436	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 437	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 439	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 440	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 441	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 442	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 443	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 445	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 446	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 448	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 449	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 451	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 452	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 454	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 455	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 459	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 460	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 462	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 463	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 466	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 467	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 469	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 470	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 471	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 472	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 473	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 474	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 475	C/C++ Problem
#78-D this declaration has no storage class or type specifier	hello.c	/hello	line 476	C/C++ Problem
#93-D identifier-list parameters may only be used in a function definition	hello.c	/hello	line 445	C/C++ Problem
#93-D identifier-list parameters may only be used in a function definition	hello.c	/hello	line 446	C/C++ Problem

The code runs fine on Dev-C++, Code::Blocks and Ubuntu Terminal ( Using GCC ), but CCS doesn't even compile the functions that are required for any additional code to run. Please help.

UPDATE: I have updated the question above with the Console info. The code is essentially the same as the hello.c file in the examples folder. The only difference is that I have added Functions above the Main Program. The functions themselves are not used in the Main Code but CCS is not able to compile them , Particularly one function ( the dtw_atrous function) to be specific as you can see above.