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.

In C++, compile error regarding SYS/BIOS "xdc_ptr"

Hello!

I have the following simple code segment.  It works in a .c project, but not in .cpp.

float *y;
y = Memory_alloc(NULL, 32, 0, NULL); //Error on THIS line
/* Do some computations, etc. with y */
Memory_free(NULL, y, 32);

In CCSv5, I get the following compile error:

  • #515 a value of type "xdc_Ptr" cannot be assigned to an entity of type "float *"

(Note that I still get this error if I declare "y" as float, int, double, etc.)

There seems to only be one e2e thread <link> regarding this error.  Unfortunately, I don't understand the thread and I think it may discuss a different problem than what I'm having.

Could this mean that I can't use TI's SYS/BIOS dynamic memory allocation software in C++ projects?