Got a C++ algorithm coded for linux and as first step of trying to port to omap DSP am using latest CCS rev and 7.37 compiler...
Anyway, code uses <list> and am getting the following error spew of errors...
Description Resource Path Location Type
#18 expected a ")" HERA_DSP line 35, external location: /opt/ti/ccsv5/tools/compiler/c6000_7.3.4/include/list C/C++ Problem
#20 identifier "_Alloc" is undefined HERA_DSP line 35, external location: /opt/ti/ccsv5/tools/compiler/c6000_7.3.4/include/list C/C++ Problem
#20 identifier "_Genptr" is undefined HERA_DSP line 30, external location: /opt/ti/ccsv5/tools/compiler/c6000_7.3.4/include/list C/C++ Problem
#20 identifier "_Genptr" is undefined HERA_DSP line 31, external location: /opt/ti/ccsv5/tools/compiler/c6000_7.3.4/include/list C/C++ Problem
#20 identifier "_List_nod" is undefined HERA_DSP line 35, external location: /opt/ti/ccsv5/tools/compiler/c6000_7.3.4/include/list C/C++ Problem
#20 identifier "_Ty" is undefined HERA_DSP line 32, external location: /opt/ti/ccsv5/tools/compiler/c6000_7.3.4/include/list C/C++ Problem
#439 template declaration is not allowed here HERA_DSP line 105, external location: /opt/ti/ccsv5/tools/compiler/c6000_7.3.4/include/functional C/C++ Problem
Looking at the source code for the first error we have:
// list standard header
#ifndef _LIST_
#define _LIST_
#include <functional>
#include <memory>
#include <stdexcept>
#define _GENERIC_BASE _Node
_STD_BEGIN
// TEMPLATE CLASS _List_nod
template<class _Ty,
class _Alloc>
class _List_nod
: public _Container_base
{ // base class for _List_ptr to hold allocator _Alnod
protected:
struct _Node;
friend struct _Node;
#if _HAS_DINKUM_ALLOCATORS
typedef void *_Genptr;
#else /* _HAS_DINKUM_ALLOCATORS */
typedef typename _Alloc::template
rebind<_GENERIC_BASE>::other::pointer _Genptr;
#endif /* _HAS_DINKUM_ALLOCATORS */
struct _Node
{ // list node
_Genptr _Next; // successor node, or first element if head
_Genptr _Prev; // predecessor node, or last element if head
_Ty _Myval; // the stored value, unused if head
};
_List_nod(_Alloc _Al)
: _Alnod(_Al)
{ // construct allocator from _Al
}
typename _Alloc::template rebind<_Node>::other
_Alnod; // allocator object for nodes
};
Purple hilite is on first error, gray hilite is non-included code...cant find any compiler options that affect this compile problem...
Any insight, gurus?
P.S. Heres screenshot of my compiler settings:
