AnsweredAssumed Answered

C++11 SHARC support

Question asked by tcmichals on Jul 20, 2016
Latest reply on Jul 25, 2016 by Kader.M

I have the following c++ code (works using g++)


* exampleCplus.cpp


*  Created on: Jul 20, 2016

*      Author: tcmichals



#include "exampleCplus.h"

#include <functional>

std::function<void(void)> fc;


Compile it:

cc21k.exe -c -file-attr ProjectName=interprocessorExample_Core1 -proc ADSP-SC589 -flags-compiler --no_wrap_diagnostics -si-revision any -g -DCORE1 -D_DEBUG -DADI_MCAPI "-IC:\\Users\\tcmichals\\cces\\2.3.0\\interprocessorExample_Core1\\system" -structs-do-not-overlap -no-const-strings -no-multiline -c++11 -warn-protos -double-size-32 -char-size-8 -swc -c++ -o src/exampleCplus.doj "..\\src\\exampleCplus.cpp"

"..\src\exampleCplus.cpp", line 12: cc0135:  error: namespace "std" has no member "function"

  std::function<void(void)> fc;



"..\src\exampleCplus.cpp", line 12: cc0065:  error: expected a ";"

  std::function<void(void)> fc;



2 errors detected in the compilation of "..\src\exampleCplus.cpp".

cc3089: fatal error: Compilation failed (code:2)


10:46:09 Build Finished (took 360ms)


Why does this not compile?