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.

Creating dynamic array in code composer

I am trying to create a dynamic array of 84 elements. The syntax I am using it does not like for some reason. My code works in Microsoft visual c++ but not in code composer. Here is my code.

 int size = 84;
    int *array = new int[size];

    // Put something in the array
    for ( int y = 0; y < size; y++ )
    array[y] = x;

for some reason it doesn't like the 'new int[size]' part.

Any help would be appreciated.

Thanks