Forum Discussion
Altera_Forum
Honored Contributor
15 years agoerror 'new' undeclared (first use in this function)
hello, is it possible to write like that in nios2 ide compiler: tmp=new double [datasize1*datasize2] because i have encountered this problem: error: 'new' undeclared (first use in this functio...
Altera_Forum
Honored Contributor
15 years ago'new' is a C++ operator, you probably only have (and want) the C library.
So use malloc() or calloc().